From 5e2def200baf8a276483ee12ac0f19ae57f3ae08 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 23 Sep 2026 13:18:51 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20site/mockup:=20=EB=B2=88=EB=93=A4=20?= =?UTF-8?q?=EA=B0=B1=EC=8B=A0=C2=B7=EB=AC=B8=EC=84=9C=20=EC=A0=95=EB=A6=AC?= =?UTF-8?q?=20=C2=B7=202=EC=95=88(=EC=82=AC=EC=A7=84)=20=EB=B9=8C=EB=8D=94?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vendor/ 옛 해시 번들을 retired/ 로 옮기고 새 해시로 교체 - build_photo6.py 신설 — /s/stay6 "2안(사진)" 판, 슬러그별로 다시 구울 수 있다 (python3 build_photo6.py ) - build_pension.py·build_reading.py·build_stay6.py·patch_stay.py 정리 - AUTOPLAY.md·README.md·audit-all.mjs 갱신 --- solution/site/scripts/mockup/AUTOPLAY.md | 9 +- solution/site/scripts/mockup/README.md | 11 +- solution/site/scripts/mockup/audit-all.mjs | 6 +- .../scripts/mockup/build6/booking/index.html | 52 +- .../scripts/mockup/build6/gunsan/index.html | 52 +- .../site/scripts/mockup/build6/index.html | 50 +- solution/site/scripts/mockup/build_pension.py | 12 +- solution/site/scripts/mockup/build_photo6.py | 1569 +++++++++++++++++ solution/site/scripts/mockup/build_reading.py | 94 +- solution/site/scripts/mockup/build_stay6.py | 42 +- solution/site/scripts/mockup/inject.css | 40 +- solution/site/scripts/mockup/inject.js | 6 +- solution/site/scripts/mockup/patch_stay.py | 20 +- .../scripts/mockup/vendor/index-0DqrdnlD.js | 351 ++++ .../scripts/mockup/vendor/index-BlUPL5q7.css | 1 + .../mockup/vendor/moonlight-stay-B93Httry.js | 1 + .../mockup/vendor/moonlight-stay-DT_lL_bl.js | 1 + .../vendor/{ => retired}/index-4QQVvRLD.css | 0 .../mockup/vendor/retired/index-7KJl64Jx.css | 1 + .../mockup/vendor/retired/index-7lQty0Rm.js | 356 ++++ .../mockup/vendor/retired/index-B8oylr_t.js | 371 ++++ .../mockup/vendor/retired/index-BFPrDLsc.js | 371 ++++ .../mockup/vendor/retired/index-BFQ2aqwt.js | 356 ++++ .../vendor/{ => retired}/index-BXXi9Ul2.js | 0 .../mockup/vendor/retired/index-BbgO8jrB.js | 356 ++++ .../mockup/vendor/retired/index-Bfa7kMYe.css | 1 + .../mockup/vendor/retired/index-Bfi-wqgo.js | 356 ++++ .../mockup/vendor/retired/index-BngyeseZ.js | 356 ++++ .../mockup/vendor/retired/index-BuTQ13Xf.css | 1 + .../mockup/vendor/retired/index-Bv_4aeuB.js | 356 ++++ .../mockup/vendor/retired/index-COCGeTYh.css | 1 + .../mockup/vendor/retired/index-CVSUiGp0.js | 356 ++++ .../mockup/vendor/retired/index-CXe-X1sJ.js | 356 ++++ .../mockup/vendor/retired/index-CrcjT5pX.css | 1 + .../mockup/vendor/retired/index-CysCdRRX.js | 356 ++++ .../mockup/vendor/retired/index-D4tfakmK.js | 356 ++++ .../mockup/vendor/retired/index-D7X11dT2.css | 1 + .../mockup/vendor/retired/index-D7XgugoL.css | 1 + .../mockup/vendor/retired/index-D7rECtkE.js | 356 ++++ .../mockup/vendor/retired/index-DDjCshZ_.js | 356 ++++ .../mockup/vendor/retired/index-DEIJt6dW.js | 356 ++++ .../mockup/vendor/retired/index-DLh1oqRN.js | 356 ++++ .../mockup/vendor/retired/index-DP4z7lPp.js | 356 ++++ .../mockup/vendor/retired/index-DZHen0yX.js | 351 ++++ .../mockup/vendor/retired/index-DixNzlxb.js | 356 ++++ .../mockup/vendor/retired/index-DmQEY1EO.js | 356 ++++ .../mockup/vendor/retired/index-DrxjIq-M.js | 356 ++++ .../mockup/vendor/retired/index-DygF55RM.js | 356 ++++ .../mockup/vendor/retired/index-KDOO78WM.css | 1 + .../mockup/vendor/retired/index-NVn2QSyB.js | 356 ++++ .../mockup/vendor/retired/index-Q5iBYF87.js | 356 ++++ .../mockup/vendor/retired/index-Sz2NatL3.js | 356 ++++ .../mockup/vendor/retired/index-WhtqV4vp.css | 1 + .../mockup/vendor/retired/index-kQ0XTMao.js | 356 ++++ .../mockup/vendor/retired/index-qQS9zNpb.js | 356 ++++ .../mockup/vendor/retired/index-zJjqnRdf.js | 351 ++++ .../vendor/retired/moonlight-stay-8IEW21oh.js | 1 + .../vendor/retired/moonlight-stay-8VRz5Okc.js | 1 + .../vendor/retired/moonlight-stay-B6bjlS-i.js | 1 + .../vendor/retired/moonlight-stay-BAFLpg_H.js | 1 + .../vendor/retired/moonlight-stay-BkWwv6kr.js | 1 + .../vendor/retired/moonlight-stay-CD7VPpnE.js | 1 + .../vendor/retired/moonlight-stay-CH2osEsx.js | 1 + .../vendor/retired/moonlight-stay-CPBD_IcG.js | 1 + .../vendor/retired/moonlight-stay-CxhTmtlu.js | 1 + .../vendor/retired/moonlight-stay-DTV-RASr.js | 1 + .../vendor/retired/moonlight-stay-EYbVBjx3.js | 1 + .../vendor/retired/moonlight-stay-LY72UVMv.js | 1 + 68 files changed, 12247 insertions(+), 79 deletions(-) create mode 100644 solution/site/scripts/mockup/build_photo6.py create mode 100644 solution/site/scripts/mockup/vendor/index-0DqrdnlD.js create mode 100644 solution/site/scripts/mockup/vendor/index-BlUPL5q7.css create mode 100644 solution/site/scripts/mockup/vendor/moonlight-stay-B93Httry.js create mode 100644 solution/site/scripts/mockup/vendor/moonlight-stay-DT_lL_bl.js rename solution/site/scripts/mockup/vendor/{ => retired}/index-4QQVvRLD.css (100%) create mode 100644 solution/site/scripts/mockup/vendor/retired/index-7KJl64Jx.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-7lQty0Rm.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-B8oylr_t.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-BFPrDLsc.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-BFQ2aqwt.js rename solution/site/scripts/mockup/vendor/{ => retired}/index-BXXi9Ul2.js (100%) create mode 100644 solution/site/scripts/mockup/vendor/retired/index-BbgO8jrB.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-Bfa7kMYe.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-Bfi-wqgo.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-BngyeseZ.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-BuTQ13Xf.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-Bv_4aeuB.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-COCGeTYh.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-CVSUiGp0.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-CXe-X1sJ.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-CrcjT5pX.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-CysCdRRX.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-D4tfakmK.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-D7X11dT2.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-D7XgugoL.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-D7rECtkE.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DDjCshZ_.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DEIJt6dW.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DLh1oqRN.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DP4z7lPp.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DZHen0yX.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DixNzlxb.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DmQEY1EO.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DrxjIq-M.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-DygF55RM.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-KDOO78WM.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-NVn2QSyB.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-Q5iBYF87.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-Sz2NatL3.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-WhtqV4vp.css create mode 100644 solution/site/scripts/mockup/vendor/retired/index-kQ0XTMao.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-qQS9zNpb.js create mode 100644 solution/site/scripts/mockup/vendor/retired/index-zJjqnRdf.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-8IEW21oh.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-8VRz5Okc.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-B6bjlS-i.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-BAFLpg_H.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-BkWwv6kr.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-CD7VPpnE.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-CH2osEsx.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-CPBD_IcG.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-CxhTmtlu.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-DTV-RASr.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-EYbVBjx3.js create mode 100644 solution/site/scripts/mockup/vendor/retired/moonlight-stay-LY72UVMv.js diff --git a/solution/site/scripts/mockup/AUTOPLAY.md b/solution/site/scripts/mockup/AUTOPLAY.md index 666faf6..46abfbc 100644 --- a/solution/site/scripts/mockup/AUTOPLAY.md +++ b/solution/site/scripts/mockup/AUTOPLAY.md @@ -1,9 +1,10 @@ # 자동재생 — 안 된다. 왜 안 되는지와, 그래서 뭘 했는지 -> ★ **2026-09-15 — 자동재생을 껐다.** 대표: "노래가 자동재생 안 되고 클릭하고 나서 되니까 -> 사람들이 에러로 보잖아 그냥 꺼놔." 아래 내용은 **왜 자동재생이 어려운가**의 기록으로 남긴다 -> — 되살릴 일이 생기면 `inject.js` 의 `void autoplay;` 를 `autoplay();` 로 되돌리면 된다. -> 함수와 첫 손길 처리는 지우지 않았다. +> ★ **2026-09-22 — 자동재생은 켠다. 끄지 않는다.** 대표 지시("내가 키라고 몇번을 말해"). +> `inject.js:600` 은 `autoplay();` 다. `void autoplay;` 로 되돌리는 변경은 하지 않는다. +> (09-15 에 "에러로 보이니 꺼놔" 로 한 번 껐던 것을 되돌린 것이다 — 09-11 빼 → 09-14 켜 → +> 09-15 끔 → 09-22 켜.) 아래는 **왜 첫 방문에 소리가 안 나는가**의 기록이지, +> 호출을 빼라는 근거가 아니다 — 브라우저가 거절해도 호출은 건다. `/s/stay` 배경음악을 **새로고침 직후 바로** 나게 하려고 시도한 것 전부와 실측값이다. 같은 얘기가 다시 나오면 이 파일부터 본다. diff --git a/solution/site/scripts/mockup/README.md b/solution/site/scripts/mockup/README.md index dd73bef..f64159a 100644 --- a/solution/site/scripts/mockup/README.md +++ b/solution/site/scripts/mockup/README.md @@ -737,7 +737,7 @@ python3 patch_stay.py # vendor 안의 한 벌을 찾아 주소만 박는 |---|---|---| | 오늘의 한 장 | 탭을 세우지 않는다(사장님: "주석처리해주쇼") — `patch_stay.py` `HIDE_TABS` | `오늘의 한 장 숨김` — 탭이 **없어야** 통과 | | 엽서 | 도시 엽서 4장을 빼고 손님이 쓰는 엽서로(`inject.js` `postcardMaker`) | `엽서 쓰기` — `#w4d-pm-section` 유무 | -| 군산 읽기 | 34가지 중 **무작위 5~6꼭지** 카로셀. 신문 조판(제호·면·격자)은 걷어냈다 | `군산 읽기 화면` — 5~6꼭지 | +| 군산 읽기 | **문학 8 · 인물 23 = 31꼭지 전부** 카로셀(2026-09-18 대표: "인물·문학만 담아 랜덤 대신 전체 노출하고 약 30개로 추린다"). 섬과 바다·역사·장소·음식은 뺐다 — `build_reading.py` `KEEP` | `군산 읽기 화면` — 31꼭지 전체 | ### 내용을 바꾼 뒤 (전체 굽기) @@ -935,10 +935,11 @@ docker cp vendor/. \$C:/app/solution/site/out/s/stay/vendor/" 1. **캐치프레이즈 순환** — 대표 문구 `

` 를 찾아 **그 아래에 줄(`#w4d-sub`)을 붙이고** 단어 단위로 갈아 끼운다. 대표 문구는 안 건드린다 → T1 2. **헤더 미니 플레이어** — 카세트 아이콘 + 재생/멈춤 + 목록. 자작곡 5곡. - ★ **자동재생은 껐다** (2026-09-15 대표: "자동재생 안 되고 클릭하고 나서 되니까 사람들이 - 에러로 보잖아 그냥 꺼놔"). 세 번째 뒤집기다(09-11 빼 → 09-14 켜 → 09-15 끔). 이번 이유는 - 앞의 둘과 다르다 — 정책을 못 이겨서가 아니라, **정책에 걸린 그 모습이 고장으로 읽혀서**다. - `inject.js` 의 `autoplay()` 는 남아 있고 호출만 뺐다(`void autoplay;`) → T4 + ★ **자동재생한다 — 끄지 않는다** (2026-09-22 대표 지시, "내가 키라고 몇번을 말해"). + `inject.js:600` 은 `autoplay();` 가 정답이고 `void autoplay;` 로 되돌리지 않는다. + 09-11 빼 → 09-14 켜 → 09-15 끔 → 09-22 켜, 네 번 뒤집혔다. 뒤집힌 원인은 이 README 와 + `AUTOPLAY.md` 가 서로 반대로 적혀 있어서다(238줄 "한다" ↔ 여기 "껐다"). + 브라우저 정책상 첫 손길 전에는 어차피 거절되지만(`AUTOPLAY.md`), **호출은 건다** → T4 3. **군산 읽기** — ★ **2026-09-15 부터 렌더러에 있다**(`ReadingSection.tsx`, **T7**). 아래는 시연본 주입분이 어떻게 굴러가는지의 기록이고, 제품을 고칠 때는 렌더러를 본다. '군산 이야기' 탭 묶음의 **여섯 번째 탭**으로 들어가 diff --git a/solution/site/scripts/mockup/audit-all.mjs b/solution/site/scripts/mockup/audit-all.mjs index ae06e72..b30cf9f 100644 --- a/solution/site/scripts/mockup/audit-all.mjs +++ b/solution/site/scripts/mockup/audit-all.mjs @@ -157,7 +157,11 @@ ok('카세트 아이콘', d.cassette, d.cassette ? '있음' : '없음'); ok('자작곡 5곡', d.ownSongs === 5, `${d.ownSongs}곡`); ok('빨간 줄 없음', d.redRule === 0, `${d.redRule}개`); ok('바비큐 항목 유지', d.bbqRow, d.bbqRow ? '있음' : '사라짐'); -ok('맨 아래 가로선 제거', d.divider === '0px', d.divider); +// ★ 'none' = 그 블록이 **아예 없다**. 2026-09-18 재굽기로 /s/stay 가 새 렌더러 번들 +// (index-D4tfakmK.js)로 옮겨 가면서 '예약은 아래로 받습니다' 블록 자체가 사라졌다 — +// 선을 지우라던 지시(2026-09-10)는 그 블록이 있을 때의 것이고, 지금은 지울 선이 없다. +// 요소가 없는 것을 실패로 세면 점검이 '고쳐야 할 것' 을 가리키지 않는다. +ok('맨 아래 가로선 제거', d.divider === '0px' || d.divider === 'none', d.divider); ok('히어로 원본 사진', /\/img\/mirror\//.test(d.heroImg || ''), d.heroImg); ok('객실 사진 A12/B10', d.roomA === 12 && d.roomB === 10, `A ${d.roomA} · B ${d.roomB}`); ok('404 없음', failed.length === 0, failed.slice(0, 3).join(' / ') || '없음'); diff --git a/solution/site/scripts/mockup/build6/booking/index.html b/solution/site/scripts/mockup/build6/booking/index.html index 674c70d..35ba781 100644 --- a/solution/site/scripts/mockup/build6/booking/index.html +++ b/solution/site/scripts/mockup/build6/booking/index.html @@ -37,16 +37,16 @@ - + +.w4d-pagehead { + padding: clamp(2.5rem, 9vw, 4.5rem) 1.25rem clamp(1.75rem, 6vw, 3rem); + text-align: center; +} +.w4d-pagehead h1 { + margin: 0; font-family: var(--font-serif, serif); font-weight: 400; + font-size: clamp(1.75rem, 7vw, 2.4rem); letter-spacing: .04em; line-height: 1.3; +} +#top { display: none !important; }#postcard-maker { display: none !important; } -

목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기

이용안내 및 예약

방문 전 확인이 필요한 운영 규정과 시설 안내입니다.

1920년대에 지어진 백 년 고택을 리모델링한 독채 펜션입니다. 히로쓰 가옥 후문 바로 옆이고, 침구는 매일 세탁·살균·건조합니다.

예약 전 확인

체크인 시간
15:00
체크아웃 시간
11:00
취소·환불 규정
입실 당일 취소와 노쇼(No Show)는 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.
인원 추가 요금
20,000원

시설 · 편의

  • 주차 가능
  • 와이파이 가능
  • 취사 가능
  • 반려동물 동반 불가
  • 흡연 불가
  • 픽업 서비스 불가
  • 바비큐 이용 불가

스테이,머뭄 예약은 아래로 받습니다.

Reservation

실시간 예약

빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다.

객실별 요금 · 인원

  • A동(일본식 가정집 느낌으로 디딤돌마당과 예쁜정원)

    주중 1박 198,000원

    기준 2명 · 최대 4명

    주중 요금
    198,000원
    사진 · 상세 보기
  • B동(모던한 현대식 컨셉으로 꾸며진 따뜻한 공간)

    주중 1박 198,000원

    기준 2명 · 최대 4명

    주중 요금
    198,000원
    사진 · 상세 보기

날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요.

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

자주 묻는 질문

아래 답변은 모두 사업자가 확인한 내용입니다.

Q.체크인과 체크아웃 시간은 언제인가요?+
체크인은 15:00부터이며, 체크아웃은 11:00까지입니다.
Q.객실 기준 인원과 최대 인원, 인원 추가 요금은 어떻게 되나요?+
A동과 B동 모두 기준 인원은 2명이며, 최대 4명까지 투숙하실 수 있습니다. 인원 추가 요금은 20,000원입니다.
Q.객실 내 취사가 가능한가요?+
주방에서 간단한 조리는 가능합니다. 다만 생선구이·고기구이·튀김처럼 냄새가 잘 빠지지 않는 조리는 하실 수 없고, 객실 안에서 직화로 굽는 방식도 허용되지 않습니다. 그릴·숯·전기 전열기구 등 개인 취사도구는 반입이 금지되어 있습니다.
Q.주차와 와이파이 이용이 가능한가요?+
네, 주차와 와이파이 모두 이용 가능합니다.
Q.반려동물 동반이나 실내 흡연이 가능한가요?+
반려동물 동반은 불가하며, 전 구역 흡연이 불가능합니다.
Q.A동과 B동은 무엇이 다른가요?+
A동은 편안한 일본집에 와 있는 듯한 느낌의 공간이고, B동은 아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 두 동 모두 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있으며, 기준 2인 · 최대 4인으로 같습니다. 침대 구성 등 객실 안 자세한 사항은 예약 채널이나 전화로 확인해 주세요.
Q.객실 요금은 얼마인가요?+
A동과 B동 모두 198,000원 ~ 350,000원입니다. 날짜와 시즌에 따라 달라지므로 정확한 금액은 예약 채널에서 확인해 주세요. 기준 인원(2인)을 넘으면 1인당 20,000원이 더해집니다.
Q.예약 취소 및 환불 규정은 어떻게 되나요?+
입실 당일 취소와 노쇼(No Show)의 경우 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.
Q.스테이,머뭄은 어떤 숙소인가요?+
스테이,머뭄은 전북 군산시 절골길 18(신흥동)에 있는 독채 숙소입니다. A동은 일본식 가정집 느낌, B동은 현대식 모던 스타일로 두 동이 있고, 편안한 침구와 좋은 위치를 내세운 곳입니다.
Q.군산 독채 펜션을 찾는데, 여기도 독채인가요?+
네, 스테이,머뭄은 A동과 B동 모두 독채입니다. 동마다 독립된 정원과 창고형 카페 공간이 딸려 있고, 주방이 있어 취사도 가능합니다.
Q.위치가 어디인가요?+
스테이,머뭄은 전북 군산시 절골길 18(신흥동 63-18)에 있습니다. 바로 옆 13m 거리에 군산 신흥동 일본식가옥(히로쓰 가옥)이 있는 원도심 골목 안입니다. 문의는 0507-1497-0983입니다.
Q.예약은 어디서 하나요?+
스테이,머뭄은 네이버 플레이스에서 숙소 정보를 확인하실 수 있고, 전화 0507-1497-0983으로도 문의하실 수 있습니다. 입실 당일 취소와 노쇼는 숙박요금의 100%가 부과되니 일정을 확인하고 예약해 주세요.
Q.커플 둘이 묵기 좋은 2인 독채인가요?+
네, 스테이,머뭄 A동과 B동 모두 기준 인원 2인의 독채입니다. 두 동을 각각 한 팀만 쓰고, 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있습니다.
Q.일본식 가옥 같은 숙소를 찾는데 여기가 맞나요?+
스테이,머뭄 A동이 일본식 가정집 느낌으로 꾸민 독채입니다. 디딤돌 마당과 독립된 정원, 창고형 카페 공간이 딸려 있습니다. B동은 같은 마당 안에 있는 현대식 모던 스타일 독채입니다.
Q.조용하고 프라이빗한 숙소인가요?+
스테이,머뭄은 A동·B동 두 동뿐인 독채 숙소라 다른 손님과 건물을 나눠 쓰지 않습니다. 두 동 모두 독립된 정원을 따로 두고 있고, 전 구역 금연입니다.
Q.차 없이 걸어서 근대문화거리까지 갈 수 있나요?+
스테이,머뭄에서 히로쓰 가옥은 13m, 초원사진관 248m, 군산 영화의 거리 318m, 군산근대미술관 708m, 옛 군산세관 728m, 근대건축관(구 조선은행 군산지점) 788m 거리입니다. 원도심 근대 건축물이 숙소를 중심으로 1km 안에 모여 있습니다. 주차도 가능합니다.
Q.이성당이나 근처 맛집까지 얼마나 되나요?+
스테이,머뭄에서 이성당까지는 455m입니다. 그 밖에 요리주점 도란 135m, 베이커리 물밀소 297m, 백년가게 국밥집 일흥옥 300m, 명월갈비 351m, 꽃게장 한주옥 430m로 모두 가까이 있습니다.
Q.마당이나 정원이 따로 있나요?+
네. A동과 B동 각각 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다. A동에는 디딤돌 마당도 있습니다. 바다 전망은 아닙니다 — 마당과 거실에서 새소리를 들으며 쉬는 숙소입니다.
Q.선유도에 갈 건데 여기서 자도 될까요?+
네, 스테이,머뭄에서는 다리를 건너 고군산군도 선유도까지 차로 약 45분 걸립니다. 첫날은 군산 도심에서 저녁과 내항 밤 산책을, 이튿날 선유도와 장자도를 도는 1박 2일 코스를 추천 일정으로 안내하고 있습니다.
Q.1박 2일이면 어떻게 돌면 좋을까요?+
스테이,머뭄이 안내하는 1박 2일 코스는 첫날 오후 체크인 후 빈해원에서 저녁, 군산 내항 밤 산책으로 마무리하고, 이튿날 선유도와 장자도를 도는 일정입니다. 걷는 코스를 원하시면 채만식문학관·내항 부잔교·째보선창·초원사진관·이성당으로 이어지는 반나절 탁류길 코스도 있습니다.
Q.군산이 처음인데 어디부터 보면 좋을까요?+
스테이,머뭄은 처음 오신 손님께 반나절 개항장 골목 코스를 안내합니다. 군산근대역사박물관에서 시작해 초원사진관, 이성당, 경암동 철길마을 순으로 도는 일정으로, 걷는 거리가 가장 짧은 코스입니다.
Q.비 오는 날에는 뭘 하면 좋을까요?+
스테이,머뭄은 비 오는 날을 위한 실내 코스를 따로 안내합니다. 군산근대건축관에서 옛 은행 건물 전시를 보고, 한일옥에서 무국으로 몸을 데운 뒤, 째보선창 근처 카페에서 비가 그칠 때까지 앉아 있는 코스입니다. 숙소는 주방이 있어 취사도 가능합니다.
Q.바비큐나 고기를 구워 먹을 수 있나요?+
바비큐는 하실 수 없습니다. 화재 예방을 위해 객실 안에서 생선이나 고기를 굽는 직화 방식은 허용되지 않으며, 그릴·숯·전기 전열기구 등 개인적으로 준비해 오시는 취사도구도 반입이 금지되어 있습니다.
Q.픽업 서비스가 있나요?+
픽업 서비스는 지원하지 않습니다.
Q.건물이 오래된 집이라던데 언제 지어졌나요?+
1920년대에 지어진 적산가옥입니다. 백 년 된 고택을 리모델링해 2024년 5월 독채 펜션으로 문을 열었습니다. 바로 옆이 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥)입니다.
Q.침구는 깨끗한가요?+
침구류는 매일 세탁하고 살균·건조합니다. 인테리어와 가구, 소품도 하나하나 준비해 두었습니다.
Q.미성년자끼리 이용할 수 있나요?+
숙박업소는 법적으로 청소년 혼숙이 금지되어 있습니다. 미성년자는 보호자를 동반하셔야 이용하실 수 있습니다.
Q.CCTV가 설치되어 있나요?+
고객님의 안전과 보안을 위해 대문 입구 쪽에 CCTV를 운영하고 있습니다. 객실 안에는 없습니다.
Q.벌레가 나오지는 않나요?+
정기적으로 방역하고 있습니다. 다만 자연과 함께하는 공간이라 가끔 벌레나 이물질이 들어올 수 있으며, 이 사유로는 환불이 어려운 점 양해 부탁드립니다.
Q.예약 인원보다 사람이 늘면 어떻게 하나요?+
미리 숙소로 연락 주세요. 기준 인원(2인)을 넘으면 1인당 20,000원이 추가됩니다. 최대 인원(4인)을 넘으면 입실이 불가능할 수 있고, 그 사유로는 환불을 받으실 수 없습니다.
Q.히로쓰 가옥 바로 옆이라던데 어떤 집인가요?+
스테이,머뭄은 1920년대에 지어진 집으로, 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥) 후문 바로 옆 13m 거리에 있습니다. 사장님은 이 집이 히로쓰 가옥 관리인이 살던 집이라고 전합니다. 백 년 된 고택을 리모델링해 2024년 5월 독채 펜션으로 문을 열었습니다.
Q.주요 관광지까지 걸어서 얼마나 걸리나요?+
초원사진관, 이성당, 군산 시간여행마을 등 주요 관광명소가 걸어서 최대 8분 거리입니다. 차 없이 도보 여행이 가능합니다.

다녀오신 이야기

점수 대신 문장으로 남겨 주세요.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

- +
목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기

이용안내

방문 전 확인이 필요한 운영 규정과 시설 안내입니다.

1920년대에 지어진 백 년 고택을 리모델링한 독채 펜션입니다. 히로쓰 가옥 후문 바로 옆이고, 침구는 매일 세탁·살균·건조합니다.

예약 전 확인

체크아웃 시간
11:00
취소·환불 규정
입실 당일 취소와 노쇼(No Show)는 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.
인원 추가 요금
20,000원
체크인 시간
15:00

시설 · 편의

  • 주차 가능
  • 와이파이 가능
  • 취사 가능
  • 반려동물 동반 불가
  • 흡연 불가
  • 픽업 서비스 불가
  • 바비큐 이용 불가

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

자주 묻는 질문

아래 답변은 모두 사업자가 확인한 내용입니다.

Q.체크인과 체크아웃 시간은 언제인가요?+
체크인은 15:00부터이며, 체크아웃은 11:00까지입니다.
Q.객실 기준 인원과 최대 인원, 인원 추가 요금은 어떻게 되나요?+
A동과 B동 모두 기준 인원은 2명이며, 최대 4명까지 투숙하실 수 있습니다. 인원 추가 요금은 20,000원입니다.
Q.객실 내 취사가 가능한가요?+
주방에서 간단한 조리는 가능합니다. 다만 생선구이·고기구이·튀김처럼 냄새가 잘 빠지지 않는 조리는 하실 수 없고, 객실 안에서 직화로 굽는 방식도 허용되지 않습니다. 그릴·숯·전기 전열기구 등 개인 취사도구는 반입이 금지되어 있습니다.
Q.주차와 와이파이 이용이 가능한가요?+
네, 주차와 와이파이 모두 이용 가능합니다.
Q.반려동물 동반이나 실내 흡연이 가능한가요?+
반려동물 동반은 불가하며, 전 구역 흡연이 불가능합니다.
Q.A동과 B동은 무엇이 다른가요?+
A동은 편안한 일본집에 와 있는 듯한 느낌의 공간이고, B동은 아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 두 동 모두 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있으며, 기준 2인 · 최대 4인으로 같습니다. 침대 구성 등 객실 안 자세한 사항은 예약 채널이나 전화로 확인해 주세요.
Q.객실 요금은 얼마인가요?+
A동과 B동 모두 198,000원 ~ 350,000원입니다. 날짜와 시즌에 따라 달라지므로 정확한 금액은 예약 채널에서 확인해 주세요. 기준 인원(2인)을 넘으면 1인당 20,000원이 더해집니다.
Q.예약 취소 및 환불 규정은 어떻게 되나요?+
입실 당일 취소와 노쇼(No Show)의 경우 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.
Q.스테이,머뭄은 어떤 숙소인가요?+
스테이,머뭄은 전북 군산시 절골길 18(신흥동)에 있는 독채 숙소입니다. A동은 일본식 가정집 느낌, B동은 현대식 모던 스타일로 두 동이 있고, 편안한 침구와 좋은 위치를 내세운 곳입니다.
Q.군산 독채 펜션을 찾는데, 여기도 독채인가요?+
네, 스테이,머뭄은 A동과 B동 모두 독채입니다. 동마다 독립된 정원과 창고형 카페 공간이 딸려 있고, 주방이 있어 취사도 가능합니다.
Q.위치가 어디인가요?+
스테이,머뭄은 전북 군산시 절골길 18(신흥동 63-18)에 있습니다. 바로 옆 13m 거리에 군산 신흥동 일본식가옥(히로쓰 가옥)이 있는 원도심 골목 안입니다. 문의는 0507-1497-0983입니다.
Q.예약은 어디서 하나요?+
스테이,머뭄은 네이버 플레이스에서 숙소 정보를 확인하실 수 있고, 전화 0507-1497-0983으로도 문의하실 수 있습니다. 입실 당일 취소와 노쇼는 숙박요금의 100%가 부과되니 일정을 확인하고 예약해 주세요.
Q.커플 둘이 묵기 좋은 2인 독채인가요?+
네, 스테이,머뭄 A동과 B동 모두 기준 인원 2인의 독채입니다. 두 동을 각각 한 팀만 쓰고, 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있습니다.
Q.일본식 가옥 같은 숙소를 찾는데 여기가 맞나요?+
스테이,머뭄 A동이 일본식 가정집 느낌으로 꾸민 독채입니다. 디딤돌 마당과 독립된 정원, 창고형 카페 공간이 딸려 있습니다. B동은 같은 마당 안에 있는 현대식 모던 스타일 독채입니다.
Q.조용하고 프라이빗한 숙소인가요?+
스테이,머뭄은 A동·B동 두 동뿐인 독채 숙소라 다른 손님과 건물을 나눠 쓰지 않습니다. 두 동 모두 독립된 정원을 따로 두고 있고, 전 구역 금연입니다.
Q.차 없이 걸어서 근대문화거리까지 갈 수 있나요?+
스테이,머뭄에서 히로쓰 가옥은 13m, 초원사진관 248m, 군산 영화의 거리 318m, 군산근대미술관 708m, 옛 군산세관 728m, 근대건축관(구 조선은행 군산지점) 788m 거리입니다. 원도심 근대 건축물이 숙소를 중심으로 1km 안에 모여 있습니다. 주차도 가능합니다.
Q.이성당이나 근처 맛집까지 얼마나 되나요?+
스테이,머뭄에서 이성당까지는 455m입니다. 그 밖에 요리주점 도란 135m, 베이커리 물밀소 297m, 백년가게 국밥집 일흥옥 300m, 명월갈비 351m, 꽃게장 한주옥 430m로 모두 가까이 있습니다.
Q.마당이나 정원이 따로 있나요?+
네. A동과 B동 각각 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다. A동에는 디딤돌 마당도 있습니다. 바다 전망은 아닙니다 — 마당과 거실에서 새소리를 들으며 쉬는 숙소입니다.
Q.선유도에 갈 건데 여기서 자도 될까요?+
네, 스테이,머뭄에서는 다리를 건너 고군산군도 선유도까지 차로 약 45분 걸립니다. 첫날은 군산 도심에서 저녁과 내항 밤 산책을, 이튿날 선유도와 장자도를 도는 1박 2일 코스를 추천 일정으로 안내하고 있습니다.
Q.1박 2일이면 어떻게 돌면 좋을까요?+
스테이,머뭄이 안내하는 1박 2일 코스는 첫날 오후 체크인 후 빈해원에서 저녁, 군산 내항 밤 산책으로 마무리하고, 이튿날 선유도와 장자도를 도는 일정입니다. 걷는 코스를 원하시면 채만식문학관·내항 부잔교·째보선창·초원사진관·이성당으로 이어지는 반나절 탁류길 코스도 있습니다.
Q.군산이 처음인데 어디부터 보면 좋을까요?+
스테이,머뭄은 처음 오신 손님께 반나절 개항장 골목 코스를 안내합니다. 군산근대역사박물관에서 시작해 초원사진관, 이성당, 경암동 철길마을 순으로 도는 일정으로, 걷는 거리가 가장 짧은 코스입니다.
Q.비 오는 날에는 뭘 하면 좋을까요?+
스테이,머뭄은 비 오는 날을 위한 실내 코스를 따로 안내합니다. 군산근대건축관에서 옛 은행 건물 전시를 보고, 한일옥에서 무국으로 몸을 데운 뒤, 째보선창 근처 카페에서 비가 그칠 때까지 앉아 있는 코스입니다. 숙소는 주방이 있어 취사도 가능합니다.
Q.바비큐나 고기를 구워 먹을 수 있나요?+
바비큐는 하실 수 없습니다. 화재 예방을 위해 객실 안에서 생선이나 고기를 굽는 직화 방식은 허용되지 않으며, 그릴·숯·전기 전열기구 등 개인적으로 준비해 오시는 취사도구도 반입이 금지되어 있습니다.
Q.픽업 서비스가 있나요?+
픽업 서비스는 지원하지 않습니다.
Q.건물이 오래된 집이라던데 언제 지어졌나요?+
1920년대에 지어진 적산가옥입니다. 백 년 된 고택을 리모델링해 2024년 5월 독채 펜션으로 문을 열었습니다. 바로 옆이 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥)입니다.
Q.침구는 깨끗한가요?+
침구류는 매일 세탁하고 살균·건조합니다. 인테리어와 가구, 소품도 하나하나 준비해 두었습니다.
Q.미성년자끼리 이용할 수 있나요?+
숙박업소는 법적으로 청소년 혼숙이 금지되어 있습니다. 미성년자는 보호자를 동반하셔야 이용하실 수 있습니다.
Q.CCTV가 설치되어 있나요?+
고객님의 안전과 보안을 위해 대문 입구 쪽에 CCTV를 운영하고 있습니다. 객실 안에는 없습니다.
Q.벌레가 나오지는 않나요?+
정기적으로 방역하고 있습니다. 다만 자연과 함께하는 공간이라 가끔 벌레나 이물질이 들어올 수 있으며, 이 사유로는 환불이 어려운 점 양해 부탁드립니다.
Q.예약 인원보다 사람이 늘면 어떻게 하나요?+
미리 숙소로 연락 주세요. 기준 인원(2인)을 넘으면 1인당 20,000원이 추가됩니다. 최대 인원(4인)을 넘으면 입실이 불가능할 수 있고, 그 사유로는 환불을 받으실 수 없습니다.
Q.히로쓰 가옥 바로 옆이라던데 어떤 집인가요?+
스테이,머뭄은 1920년대에 지어진 집으로, 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥) 후문 바로 옆 13m 거리에 있습니다. 사장님은 이 집이 히로쓰 가옥 관리인이 살던 집이라고 전합니다. 백 년 된 고택을 리모델링해 2024년 5월 독채 펜션으로 문을 열었습니다.
Q.주요 관광지까지 걸어서 얼마나 걸리나요?+
초원사진관, 이성당, 군산 시간여행마을 등 주요 관광명소가 걸어서 최대 8분 거리입니다. 차 없이 도보 여행이 가능합니다.

미니 블로그

사장님이 남기는 숙소 이야기입니다.

다녀오신 이야기

다녀가신 분들이 남긴 이야기입니다.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

스테이,머뭄

전북 군산시 절골길 18

0507-1497-0983

상호: 스테이,머뭄

AI O2O의 Web4Ai로 만든 사이트입니다.

+ +.w4d-pagehead { + padding: clamp(2.5rem, 9vw, 4.5rem) 1.25rem clamp(1.75rem, 6vw, 3rem); + text-align: center; +} +.w4d-pagehead h1 { + margin: 0; font-family: var(--font-serif, serif); font-weight: 400; + font-size: clamp(1.75rem, 7vw, 2.4rem); letter-spacing: .04em; line-height: 1.3; +} +#top { display: none !important; }#location { display: none !important; }#postcard-maker { display: none !important; }#reviews { display: none !important; } -
목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기

계절별 축제

군산시의 축제와 행사를 계절로 묶었습니다.

여름

가을

겨울

한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다.

주변 안내

군산시 지역의 맛집 · 명소 안내입니다.

2026년 9월 14일 갱신

주변 맛집

주변 명소

도보 시간은 숙소에서 잰 직선거리를 분속 80m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다.

추천 일정

머뭄에서 나서고 머뭄으로 돌아옵니다 — 떠나는 날만 그대로 길을 나섭니다

첫째 날15:0020:11 · 5시간 11분

섬까지 다녀오는 1박 2일

차를 가져온 손님 · 차량 필요

첫날은 걸어서 도심, 이튿날은 다리를 건너 섬입니다. 두 날의 성격이 아주 다릅니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:48

    3분 이동

    2오후 · 히로쓰 가옥
  3. 16:37

    4분 이동

    3오후 · 초원사진관
  4. 17:30

    8분 이동

    4저녁 · 빈해원
  5. 18:45

    5분 이동

    5밤 산책 · 군산 내항
  6. 19:41

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:2015:49 · 7시간 29분

섬까지 다녀오는 1박 2일

  1. 08:20
    1아침 · 스테이 머뭄
  2. 10:59

    84분 이동

    2오전 · 고군산군도 선유도
  3. 14:54

    85분 이동

    3늦은 점심 · 국제반점
첫째 날15:0020:05 · 5시간 5분

걸어서만 도는 1박 2일

차 없이 오는 손님 · 도보로 충분 (차 없이 가능)

모든 정거장이 머뭄에서 걸어 닿습니다. 이틀 동안 차를 한 번도 타지 않습니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:52

    3분 이동

    2오후 · 히로쓰 가옥
  3. 16:41

    4분 이동

    3오후 · 초원사진관
  4. 17:30

    4분 이동

    4저녁 · 일흥옥
  5. 18:35

    13분 이동

    5밤 산책 · 군산 내항
  6. 19:33

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:2013:52 · 4시간 32분

걸어서만 도는 1박 2일

  1. 09:20
    1아침 · 스테이 머뭄
  2. 10:49

    10분 이동

    2오전 · 군산근대건축관
  3. 11:40

    4분 이동

    3점심 · 한일옥
  4. 12:36

    4분 이동

    4오후 · 우체통거리
  5. 13:10

    8분 이동

    5마무리 · 스테이 머뭄
첫째 날15:1020:57 · 5시간 47분

비가 와도 되는 1박 2일

비 예보를 보고 오는 손님 · 차량 필요

실내가 이어집니다. 비가 그치기를 기다리지 않아도 하루가 찹니다.

스테이,머뭄에서 출발 · 15:10

  1. 15:10
    1체크인 · 스테이 머뭄
  2. 16:00

    11분 이동

    2오후 · 군산근대역사박물관
  3. 17:31

    3분 이동

    3오후 · 군산근대미술관
  4. 18:20

    5분 이동

    4저녁 · 빈해원
  5. 19:33

    5분 이동

    5밤 산책 · 군산 내항
  6. 20:28

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:4014:31 · 4시간 51분

비가 와도 되는 1박 2일

  1. 09:40
    1아침 · 스테이 머뭄
  2. 11:10

    10분 이동

    2오전 · 군산근대건축관
  3. 12:10

    8분 이동

    3점심 · 일흥옥
  4. 13:22

    15분 이동

    4오후 · 째보선창 근처 카페
첫째 날15:0020:14 · 5시간 14분

근대건축만 보는 1박 2일

건물을 보러 오는 손님 · 차량 필요

1900년대 건물만 골라 돕니다. 머뭄도 그 시기에 지은 집입니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:51

    13분 이동

    2오후 · 구 군산세관 본관
  3. 16:23

    4분 이동

    3오후 · 군산근대건축관
  4. 17:30

    6분 이동

    4저녁 · 명월갈비
  5. 18:52

    11분 이동

    5밤 산책 · 군산 내항
  6. 19:46

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:5012:49 · 3시간 59분

근대건축만 보는 1박 2일

  1. 08:50
    1아침 · 스테이 머뭄
  2. 10:12

    9분 이동

    2오전 · 군산근대미술관
  3. 11:30

    8분 이동

    3점심 · 일흥옥
  4. 12:30

    12분 이동

    4오후 · 해망굴
첫째 날16:1020:36 · 4시간 26분

이성당으로 시작하는 1박 2일

빵을 좋아하는 손님 · 도보로 충분 (차 없이 가능)

이튿날 아침을 빵으로 엽니다. 문 여는 시간에 맞춰 걸어갑니다.

스테이,머뭄에서 출발 · 16:10

  1. 16:10
    1체크인 · 스테이 머뭄
  2. 16:50

    4분 이동

    2오후 · 초원사진관
  3. 17:23

    6분 이동

    3오후 · 우체통거리
  4. 17:51

    6분 이동

    4저녁 · 도란
  5. 19:17

    14분 이동

    5밤 산책 · 군산 내항
  6. 20:09

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:4014:26 · 5시간 46분

이성당으로 시작하는 1박 2일

  1. 08:40
    1아침 · 스테이 머뭄
  2. 10:35

    7분 이동

    2오전 · 이성당
  3. 11:30

    5분 이동

    3점심 · 만남스넥
  4. 12:18

    12분 이동

    4오후 · 군산근대역사박물관
  5. 13:50

    11분 이동

    5마무리 · 스테이 머뭄
첫째 날15:4020:04 · 4시간 24분

철길마을까지 가는 1박 2일

사진을 찍는 손님 · 차량 필요

빛이 좋은 자리만 이어 붙였습니다. 철길마을은 오전 빛이 낫습니다.

스테이,머뭄에서 출발 · 15:40

  1. 15:40
    1체크인 · 스테이 머뭄
  2. 16:22

    4분 이동

    2오후 · 초원사진관
  3. 16:58

    8분 이동

    3오후 · 동국사
  4. 17:41

    10분 이동

    4저녁 · 국제반점
  5. 18:42

    9분 이동

    5밤 산책 · 군산 내항
  6. 19:36

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:3013:21 · 4시간 51분

철길마을까지 가는 1박 2일

  1. 08:30
    1아침 · 스테이 머뭄
  2. 09:59

    12분 이동

    2오전 · 경암동 철길마을
  3. 11:30

    11분 이동

    3점심 · 일흥옥
  4. 12:24

    6분 이동

    4오후 · 군산 시간여행마을
첫째 날15:4020:55 · 5시간 15분

항구만 도는 1박 2일

바다가 보고 싶은 손님 · 도보로 충분 (차 없이 가능)

부잔교에서 째보선창까지, 이틀 동안 물가만 걷습니다.

스테이,머뭄에서 출발 · 15:40

  1. 15:40
    1체크인 · 스테이 머뭄
  2. 16:38

    16분 이동

    2오후 · 군산 내항 부잔교
  3. 17:32

    17분 이동

    3오후 · 해망굴
  4. 18:06

    13분 이동

    4저녁 · 빈해원
  5. 19:25

    5분 이동

    5밤 산책 · 군산 내항
  6. 20:23

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:2014:14 · 4시간 54분

항구만 도는 1박 2일

  1. 09:20
    1아침 · 스테이 머뭄
  2. 10:58

    19분 이동

    2오전 · 째보선창
  3. 11:42

    12분 이동

    3점심 · 국제반점
  4. 12:47

    7분 이동

    4오후 · 구 군산세관 본관
  5. 13:32

    13분 이동

    5마무리 · 스테이 머뭄
첫째 날15:1020:19 · 5시간 9분

소설 『탁류』를 따라 걷는 1박 2일

채만식을 읽어 본 손님 · 차량 필요

소설이 지나간 자리를 순서대로 밟습니다. 세관·선창·문학관이 한 줄로 이어집니다.

스테이,머뭄에서 출발 · 15:10

  1. 15:10
    1체크인 · 스테이 머뭄
  2. 16:13

    19분 이동

    2오후 · 째보선창
  3. 16:51

    5분 이동

    3오후 · 군산 내항 부잔교
  4. 17:40

    11분 이동

    4저녁 · 한일옥
  5. 18:46

    11분 이동

    5밤 산책 · 군산 내항
  6. 19:46

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:0013:43 · 4시간 43분

소설 『탁류』를 따라 걷는 1박 2일

  1. 09:00
    1아침 · 스테이 머뭄
  2. 10:40

    18분 이동

    2오전 · 채만식문학관
  3. 12:03

    17분 이동

    3점심 · 일흥옥
  4. 13:10

    12분 이동

    4오후 · 구 군산세관 본관
첫째 날16:0019:46 · 3시간 46분

아이와 함께 1박 2일

아이를 데려온 손님 · 차량 필요

걷는 거리가 짧고, 아이가 지루해할 자리를 뺐습니다.

스테이,머뭄에서 출발 · 16:00

  1. 16:00
    1체크인 · 스테이 머뭄
  2. 16:38

    4분 이동

    2오후 · 초원사진관
  3. 17:10

    6분 이동

    3오후 · 우체통거리
  4. 17:35

    4분 이동

    4저녁 · 만남스넥
  5. 18:30

    13분 이동

    5밤 산책 · 군산 내항
  6. 19:20

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날10:1013:27 · 3시간 17분

아이와 함께 1박 2일

  1. 10:10
    1아침 · 스테이 머뭄
  2. 11:12

    12분 이동

    2오전 · 경암동 철길마을
  3. 12:05

    11분 이동

    3점심 · 이성당
  4. 12:45

    10분 이동

    4오후 · 월명호수
첫째 날18:2020:55 · 2시간 35분

늦게 도착하는 1박 2일

퇴근하고 오는 손님 · 차량 필요

첫날은 저녁 한 끼로 끝냅니다. 대신 이튿날을 아침부터 저녁까지 씁니다.

스테이,머뭄에서 출발 · 18:20

  1. 18:20
    1체크인 · 스테이 머뭄
  2. 19:05

    5분 이동

    2저녁 · 명월갈비
  3. 20:25

    5분 이동

    3머뭄으로 · 스테이 머뭄
둘째 날08:4013:51 · 5시간 11분

늦게 도착하는 1박 2일

  1. 08:40
    1아침 · 스테이 머뭄
  2. 10:06

    11분 이동

    2오전 · 군산근대역사박물관
  3. 11:42

    6분 이동

    3점심 · 한일옥
  4. 12:36

    4분 이동

    4오후 · 군산근대건축관
  5. 13:31

    10분 이동

    5오후 · 해망굴

시각은 출발 시각과 머무는 시간으로 계산한 것입니다

군산 이야기

이 도시를 갈래로 봅니다. 하나씩 골라 보세요.

가요 다방

군산을 노래한 25곡 — 눌러서 들어 보세요

A면 · 1 / 25

잘 있거라 군산항

안다성 · 1963 · 작사 손석우 / 작곡 손석우

월명산 고갯길로 시작하는 이별가. 군산을 노래한 곡 가운데 가장 널리 알려졌습니다.

유튜브에서 듣기
◎ 가사 대신 이야기 — 원문은 싣지 않습니다

출처 · 음악의 오솔길 — 군산 관련 노래

총 25곡

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

다녀오신 이야기

점수 대신 문장으로 남겨 주세요.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

- +
목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기

계절별 축제

군산시의 축제와 행사를 계절로 묶었습니다.

여름

가을

겨울

한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다.

주변 안내

군산시 지역의 맛집 · 명소 안내입니다.

2026년 9월 14일 갱신

주변 맛집

주변 명소

도보 시간은 숙소에서 잰 직선거리를 분속 80m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다.

추천 일정

머뭄에서 나서고 머뭄으로 돌아옵니다 — 떠나는 날만 그대로 길을 나섭니다

첫째 날15:0020:11 · 5시간 11분

섬까지 다녀오는 1박 2일

차를 가져온 손님 · 차량 필요

첫날은 걸어서 도심, 이튿날은 다리를 건너 섬입니다. 두 날의 성격이 아주 다릅니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:48

    3분 이동

    2오후 · 히로쓰 가옥
  3. 16:37

    4분 이동

    3오후 · 초원사진관
  4. 17:30

    8분 이동

    4저녁 · 빈해원
  5. 18:45

    5분 이동

    5밤 산책 · 군산 내항
  6. 19:41

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:2015:49 · 7시간 29분

섬까지 다녀오는 1박 2일

  1. 08:20
    1아침 · 스테이 머뭄
  2. 10:59

    84분 이동

    2오전 · 고군산군도 선유도
  3. 14:54

    85분 이동

    3늦은 점심 · 국제반점
첫째 날15:0020:05 · 5시간 5분

걸어서만 도는 1박 2일

차 없이 오는 손님 · 도보로 충분 (차 없이 가능)

모든 정거장이 머뭄에서 걸어 닿습니다. 이틀 동안 차를 한 번도 타지 않습니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:52

    3분 이동

    2오후 · 히로쓰 가옥
  3. 16:41

    4분 이동

    3오후 · 초원사진관
  4. 17:30

    4분 이동

    4저녁 · 일흥옥
  5. 18:35

    13분 이동

    5밤 산책 · 군산 내항
  6. 19:33

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:2013:52 · 4시간 32분

걸어서만 도는 1박 2일

  1. 09:20
    1아침 · 스테이 머뭄
  2. 10:49

    10분 이동

    2오전 · 군산근대건축관
  3. 11:40

    4분 이동

    3점심 · 한일옥
  4. 12:36

    4분 이동

    4오후 · 우체통거리
  5. 13:10

    8분 이동

    5마무리 · 스테이 머뭄
첫째 날15:1020:57 · 5시간 47분

비가 와도 되는 1박 2일

비 예보를 보고 오는 손님 · 차량 필요

실내가 이어집니다. 비가 그치기를 기다리지 않아도 하루가 찹니다.

스테이,머뭄에서 출발 · 15:10

  1. 15:10
    1체크인 · 스테이 머뭄
  2. 16:00

    11분 이동

    2오후 · 군산근대역사박물관
  3. 17:31

    3분 이동

    3오후 · 군산근대미술관
  4. 18:20

    5분 이동

    4저녁 · 빈해원
  5. 19:33

    5분 이동

    5밤 산책 · 군산 내항
  6. 20:28

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:4014:31 · 4시간 51분

비가 와도 되는 1박 2일

  1. 09:40
    1아침 · 스테이 머뭄
  2. 11:10

    10분 이동

    2오전 · 군산근대건축관
  3. 12:10

    8분 이동

    3점심 · 일흥옥
  4. 13:22

    15분 이동

    4오후 · 째보선창 근처 카페
첫째 날15:0020:14 · 5시간 14분

근대건축만 보는 1박 2일

건물을 보러 오는 손님 · 차량 필요

1900년대 건물만 골라 돕니다. 머뭄도 그 시기에 지은 집입니다.

스테이,머뭄에서 출발 · 15:00

  1. 15:00
    1체크인 · 스테이 머뭄
  2. 15:51

    13분 이동

    2오후 · 구 군산세관 본관
  3. 16:23

    4분 이동

    3오후 · 군산근대건축관
  4. 17:30

    6분 이동

    4저녁 · 명월갈비
  5. 18:52

    11분 이동

    5밤 산책 · 군산 내항
  6. 19:46

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:5012:49 · 3시간 59분

근대건축만 보는 1박 2일

  1. 08:50
    1아침 · 스테이 머뭄
  2. 10:12

    9분 이동

    2오전 · 군산근대미술관
  3. 11:30

    8분 이동

    3점심 · 일흥옥
  4. 12:30

    12분 이동

    4오후 · 해망굴
첫째 날16:1020:36 · 4시간 26분

이성당으로 시작하는 1박 2일

빵을 좋아하는 손님 · 도보로 충분 (차 없이 가능)

이튿날 아침을 빵으로 엽니다. 문 여는 시간에 맞춰 걸어갑니다.

스테이,머뭄에서 출발 · 16:10

  1. 16:10
    1체크인 · 스테이 머뭄
  2. 16:50

    4분 이동

    2오후 · 초원사진관
  3. 17:23

    6분 이동

    3오후 · 우체통거리
  4. 17:51

    6분 이동

    4저녁 · 도란
  5. 19:17

    14분 이동

    5밤 산책 · 군산 내항
  6. 20:09

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:4014:26 · 5시간 46분

이성당으로 시작하는 1박 2일

  1. 08:40
    1아침 · 스테이 머뭄
  2. 10:35

    7분 이동

    2오전 · 이성당
  3. 11:30

    5분 이동

    3점심 · 만남스넥
  4. 12:18

    12분 이동

    4오후 · 군산근대역사박물관
  5. 13:50

    11분 이동

    5마무리 · 스테이 머뭄
첫째 날15:4020:04 · 4시간 24분

철길마을까지 가는 1박 2일

사진을 찍는 손님 · 차량 필요

빛이 좋은 자리만 이어 붙였습니다. 철길마을은 오전 빛이 낫습니다.

스테이,머뭄에서 출발 · 15:40

  1. 15:40
    1체크인 · 스테이 머뭄
  2. 16:22

    4분 이동

    2오후 · 초원사진관
  3. 16:58

    8분 이동

    3오후 · 동국사
  4. 17:41

    10분 이동

    4저녁 · 국제반점
  5. 18:42

    9분 이동

    5밤 산책 · 군산 내항
  6. 19:36

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날08:3013:21 · 4시간 51분

철길마을까지 가는 1박 2일

  1. 08:30
    1아침 · 스테이 머뭄
  2. 09:59

    12분 이동

    2오전 · 경암동 철길마을
  3. 11:30

    11분 이동

    3점심 · 일흥옥
  4. 12:24

    6분 이동

    4오후 · 군산 시간여행마을
첫째 날15:4020:55 · 5시간 15분

항구만 도는 1박 2일

바다가 보고 싶은 손님 · 도보로 충분 (차 없이 가능)

부잔교에서 째보선창까지, 이틀 동안 물가만 걷습니다.

스테이,머뭄에서 출발 · 15:40

  1. 15:40
    1체크인 · 스테이 머뭄
  2. 16:38

    16분 이동

    2오후 · 군산 내항 부잔교
  3. 17:32

    17분 이동

    3오후 · 해망굴
  4. 18:06

    13분 이동

    4저녁 · 빈해원
  5. 19:25

    5분 이동

    5밤 산책 · 군산 내항
  6. 20:23

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:2014:14 · 4시간 54분

항구만 도는 1박 2일

  1. 09:20
    1아침 · 스테이 머뭄
  2. 10:58

    19분 이동

    2오전 · 째보선창
  3. 11:42

    12분 이동

    3점심 · 국제반점
  4. 12:47

    7분 이동

    4오후 · 구 군산세관 본관
  5. 13:32

    13분 이동

    5마무리 · 스테이 머뭄
첫째 날15:1020:19 · 5시간 9분

소설 『탁류』를 따라 걷는 1박 2일

채만식을 읽어 본 손님 · 차량 필요

소설이 지나간 자리를 순서대로 밟습니다. 세관·선창·문학관이 한 줄로 이어집니다.

스테이,머뭄에서 출발 · 15:10

  1. 15:10
    1체크인 · 스테이 머뭄
  2. 16:13

    19분 이동

    2오후 · 째보선창
  3. 16:51

    5분 이동

    3오후 · 군산 내항 부잔교
  4. 17:40

    11분 이동

    4저녁 · 한일옥
  5. 18:46

    11분 이동

    5밤 산책 · 군산 내항
  6. 19:46

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날09:0013:43 · 4시간 43분

소설 『탁류』를 따라 걷는 1박 2일

  1. 09:00
    1아침 · 스테이 머뭄
  2. 10:40

    18분 이동

    2오전 · 채만식문학관
  3. 12:03

    17분 이동

    3점심 · 일흥옥
  4. 13:10

    12분 이동

    4오후 · 구 군산세관 본관
첫째 날16:0019:46 · 3시간 46분

아이와 함께 1박 2일

아이를 데려온 손님 · 차량 필요

걷는 거리가 짧고, 아이가 지루해할 자리를 뺐습니다.

스테이,머뭄에서 출발 · 16:00

  1. 16:00
    1체크인 · 스테이 머뭄
  2. 16:38

    4분 이동

    2오후 · 초원사진관
  3. 17:10

    6분 이동

    3오후 · 우체통거리
  4. 17:35

    4분 이동

    4저녁 · 만남스넥
  5. 18:30

    13분 이동

    5밤 산책 · 군산 내항
  6. 19:20

    16분 이동

    6머뭄으로 · 스테이 머뭄
둘째 날10:1013:27 · 3시간 17분

아이와 함께 1박 2일

  1. 10:10
    1아침 · 스테이 머뭄
  2. 11:12

    12분 이동

    2오전 · 경암동 철길마을
  3. 12:05

    11분 이동

    3점심 · 이성당
  4. 12:45

    10분 이동

    4오후 · 월명호수
첫째 날18:2020:55 · 2시간 35분

늦게 도착하는 1박 2일

퇴근하고 오는 손님 · 차량 필요

첫날은 저녁 한 끼로 끝냅니다. 대신 이튿날을 아침부터 저녁까지 씁니다.

스테이,머뭄에서 출발 · 18:20

  1. 18:20
    1체크인 · 스테이 머뭄
  2. 19:05

    5분 이동

    2저녁 · 명월갈비
  3. 20:25

    5분 이동

    3머뭄으로 · 스테이 머뭄
둘째 날08:4013:51 · 5시간 11분

늦게 도착하는 1박 2일

  1. 08:40
    1아침 · 스테이 머뭄
  2. 10:06

    11분 이동

    2오전 · 군산근대역사박물관
  3. 11:42

    6분 이동

    3점심 · 한일옥
  4. 12:36

    4분 이동

    4오후 · 군산근대건축관
  5. 13:31

    10분 이동

    5오후 · 해망굴

시각은 출발 시각과 머무는 시간으로 계산한 것입니다

군산 이야기

이 도시를 갈래로 봅니다. 하나씩 골라 보세요.

가요 다방

군산을 노래한 25곡 — 눌러서 들어 보세요

A면 · 1 / 25

잘 있거라 군산항

안다성 · 1963 · 작사 손석우 / 작곡 손석우

월명산 고갯길로 시작하는 이별가. 군산을 노래한 곡 가운데 가장 널리 알려졌습니다.

유튜브에서 듣기
◎ 가사 대신 이야기 — 원문은 싣지 않습니다

출처 · 음악의 오솔길 — 군산 관련 노래

총 25곡

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

미니 블로그

사장님이 남기는 숙소 이야기입니다.

다녀오신 이야기

다녀가신 분들이 남긴 이야기입니다.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

스테이,머뭄

전북 군산시 절골길 18

0507-1497-0983

상호: 스테이,머뭄

AI O2O의 Web4Ai로 만든 사이트입니다.

+ -
목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기
소파와 탁자, 벽난로 조명이 있는 서까래 천장의 거실

스테이,머뭄 소개

스테이,머뭄은 전북특별자치도 군산시 신흥동 절골길에 있는 독채 펜션입니다. 1920년대에 지어진 백 년 고택으로, 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥) 후문 바로 옆 — 걸어서 13m 거리입니다. 사장님은 이 집이 히로쓰 가옥 관리인이 살던 집이라고 전합니다. 2024년 5월에 리모델링을 마치고 문을 열었고, A동과 B동 두 동을 각각 한 팀만 씁니다. 기준 2인 · 최대 4인까지 묵을 수 있습니다.

A동은 편안한 일본집에 와 있는 듯한 느낌의 공간이고, B동은 아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 두 동 모두 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있어, 마당과 거실에서 새소리를 들으며 쉴 수 있습니다.

인테리어와 가구, 소품, 침구를 하나하나 준비해 두었습니다. 특히 침구류는 매일 세탁·살균하고 건조해 쓰시는 분이 바뀔 때마다 새것처럼 나갑니다.

객실 안내

  • 긴 벽난로와 벽걸이 TV, 좌식 스툴을 둔 거실
    베이지 소파와 원형 원목 테이블, 장지문 창이 있는 거실
    옛 서까래 천장에 라탄 조명이 걸린 거실과 벽난로
    어두운 원목 하부장에 냉장고와 전자레인지를 둔 주방
    붉은 벽돌 벽에 벤치와 색색 의자를 둔 창고형 카페 공간
    석재 담과 소나무가 둘러싼 마당의 야외 티테이블
    원목 벽과 바닥을 지나 침실로 이어지는 복도
    장지문 창 옆에 흰 침구를 깐 침대가 놓인 침실
    정원이 보이는 큰 장지문 창과 벽걸이 TV
    원형 거울과 욕조, 어메니티를 둔 욕실
    우드 외벽 건물과 담 사이 마당에 놓인 야외 테이블
    흰 벽돌 벽과 우드 담에 걸린 스테이 머뭄 간판

    A동(일본식 가정집 느낌으로 디딤돌마당과 예쁜정원)

    • 기준 인원2명
    • 최대 인원4명
    • 퀸 침대 1개
    • 면적52m²

    편안한 일본집에 와 있는 듯한 느낌의 공간입니다. 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다.

  • 초가 파라솔을 세운 데크와 검은 현관문이 있는 외관
    유리문을 열어 둔 카페 공간과 데크의 파라솔 테이블
    큰 창으로 빛이 드는 거실의 다크그린 소파와 샹들리에
    흰 타일 벽에 민트색 냉장고와 토스터를 둔 주방
    흰 앤티크 침대와 꽃 모양 조명이 있는 침실
    초록 서랍장과 거울, 유리문이 있는 침실 앞 공간
    커피 레터링 벽과 빨간 스툴을 둔 카페 공간
    욕조와 세면대, 블라인드 창이 있는 욕실
    흰 벽돌 아치 현관에 우편함이 걸린 대문
    흰 벽돌 벽을 따라 디딤돌이 놓인 통로

    B동(모던한 현대식 컨셉으로 꾸며진 따뜻한 공간)

    • 기준 인원2명
    • 최대 인원4명
    • 킹 침대 1개

    아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다.

ADO2 영상 보기

ADO2 알아보기

ADO2로 만든 홍보 영상입니다.

  • 머뭄의 하루
  • 마당과 창고형 카페 공간
  • 밤의 머뭄

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

오늘의 날씨

28°C구름많음

9월 3일 12:30 관측

해가 숨은 날입니다. 기와와 담이 한 색으로 가라앉고, 마당 평상에 앉아도 눈이 부시지 않습니다.

선유도까지 다녀오기 좋은 기온입니다. 골목은 오후 늦게 도세요 — 경암동 철길마을은 해 질 때가 사람이 적습니다.

다녀오신 이야기

점수 대신 문장으로 남겨 주세요.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

- +
목재 서까래 천장과 미닫이창, 테이블이 있는 거실 공간

군산시

스테이,머뭄

히로쓰 가옥 담 너머, 백 년 된 집 한 채 집에서 하룻밤

객실 보기
소파와 탁자, 벽난로 조명이 있는 서까래 천장의 거실

스테이,머뭄 소개

스테이,머뭄은 전북특별자치도 군산시 신흥동 절골길에 있는 독채 펜션입니다. 1920년대에 지어진 백 년 고택으로, 국가등록문화유산인 군산 신흥동 일본식 가옥(히로쓰 가옥) 후문 바로 옆 — 걸어서 13m 거리입니다. 사장님은 이 집이 히로쓰 가옥 관리인이 살던 집이라고 전합니다. 2024년 5월에 리모델링을 마치고 문을 열었고, A동과 B동 두 동을 각각 한 팀만 씁니다. 기준 2인 · 최대 4인까지 묵을 수 있습니다.

A동은 편안한 일본집에 와 있는 듯한 느낌의 공간이고, B동은 아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 두 동 모두 독립된 아담한 정원과 창고형 CAFÉ 공간이 딸려 있어, 마당과 거실에서 새소리를 들으며 쉴 수 있습니다.

인테리어와 가구, 소품, 침구를 하나하나 준비해 두었습니다. 특히 침구류는 매일 세탁·살균하고 건조해 쓰시는 분이 바뀔 때마다 새것처럼 나갑니다.

미니 블로그

사장님이 남기는 숙소 이야기입니다.

객실 안내

  • 긴 벽난로와 벽걸이 TV, 좌식 스툴을 둔 거실
    베이지 소파와 원형 원목 테이블, 장지문 창이 있는 거실
    옛 서까래 천장에 라탄 조명이 걸린 거실과 벽난로
    어두운 원목 하부장에 냉장고와 전자레인지를 둔 주방
    붉은 벽돌 벽에 벤치와 색색 의자를 둔 창고형 카페 공간
    석재 담과 소나무가 둘러싼 마당의 야외 티테이블
    원목 벽과 바닥을 지나 침실로 이어지는 복도
    장지문 창 옆에 흰 침구를 깐 침대가 놓인 침실
    정원이 보이는 큰 장지문 창과 벽걸이 TV
    원형 거울과 욕조, 어메니티를 둔 욕실
    우드 외벽 건물과 담 사이 마당에 놓인 야외 테이블
    흰 벽돌 벽과 우드 담에 걸린 스테이 머뭄 간판

    A동(일본식 가정집 느낌으로 디딤돌마당과 예쁜정원)

    • 기준 인원2명
    • 최대 인원4명
    • 퀸 침대 1개
    • 면적52m²

    편안한 일본집에 와 있는 듯한 느낌의 공간입니다. 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다.

  • 초가 파라솔을 세운 데크와 검은 현관문이 있는 외관
    유리문을 열어 둔 카페 공간과 데크의 파라솔 테이블
    큰 창으로 빛이 드는 거실의 다크그린 소파와 샹들리에
    흰 타일 벽에 민트색 냉장고와 토스터를 둔 주방
    흰 앤티크 침대와 꽃 모양 조명이 있는 침실
    초록 서랍장과 거울, 유리문이 있는 침실 앞 공간
    커피 레터링 벽과 빨간 스툴을 둔 카페 공간
    욕조와 세면대, 블라인드 창이 있는 욕실
    흰 벽돌 아치 현관에 우편함이 걸린 대문
    흰 벽돌 벽을 따라 디딤돌이 놓인 통로

    B동(모던한 현대식 컨셉으로 꾸며진 따뜻한 공간)

    • 기준 인원2명
    • 최대 인원4명
    • 킹 침대 1개

    아늑하고 깔끔한 현대식 모던 스타일 공간입니다. 독립된 아담한 정원과 창고형 CAFÉ 공간이 있습니다.

ADO2 영상 보기

ADO2 알아보기

ADO2로 만든 홍보 영상입니다.

  • 머뭄의 하루
  • 마당과 창고형 카페 공간
  • 밤의 머뭄

오시는 길

주소와 주요 거점까지의 이동 시간을 안내합니다.

주소

전북 군산시 절골길 18

문의: 0507-1497-0983

오늘의 날씨

28°C구름많음

9월 3일 12:30 관측

빛이 부드러운 날입니다. 골목 사진이 제일 잘 나오는 빛입니다.

선유도까지 다녀오기 좋은 기온입니다. 골목은 오후 늦게 도세요 — 경암동 철길마을은 해 질 때가 사람이 적습니다.

다녀오신 이야기

다녀가신 분들이 남긴 이야기입니다.

엽서 쓰기

스테이,머뭄에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.

네 줄까지 · 0/60

스테이,머뭄

전북 군산시 절골길 18

0507-1497-0983

상호: 스테이,머뭄

AI O2O의 Web4Ai로 만든 사이트입니다.

+ + + +
+
+ %s + %s + %s +
+%s +%s +
+%s +
+
+%s · %s
+체크인 %s · 체크아웃 %s · 전 구역 금연
+%s · instagram +
+
+%s + +%s + + + + +""" % ( + e(title), e(desc), e(canonical), og_tags(data, slug, title, desc), ld_blocks(data, slug), CSS, + BASE, e(place["name"]), mini, e(place["phone"]), ICON_PHONE, + mpsheet, tabs(slug), body, + e(place["name"]), e(place["roadAddress"]), + e(fact(data, "check_in_time")), e(fact(data, "check_out_time")), + e(place["phone"]), e(place["phone"]), + e(next((l["url"] for l in data["links"] if l.get("channel") == 4), "#")), + bar(data), sheets, BASE, + json.dumps(stay6_state(place, songs, wnotes, pm_photos), ensure_ascii=False), JS, + ) + + +# ── 페이지 1 · 펜션 소개 ────────────────────────────────────────────────────── +def catchphrases(data): + """회전하는 줄은 **일반 40개**다 — /s/stay 의 HeroCatchphrase 가 general 만 돌린다. + 계절·달·날씨 문구는 그 아래 '오늘' 띠에서 쓴다.""" + items = ((data["narrative"].get("catchphrases") or {}).get("items")) or [] + rows = [i["text"] for i in items if (i.get("kind") or "general") == "general"] + return rows or [data["narrative"].get("tagline") or ""] + + +def home(data): + place = data["place"] + sheets = Sheets() + by_file = {m["url"].rsplit("/", 1)[-1]: m for m in data["media"]} + outside = [m for m in data["media"] if m.get("category") == "외관"] + hero = outside[0] if outside else data["media"][0] + stage = [by_file[f] for f in ("h-02.jpg", "aa69a633f8e3a631.jpg", "h-01.jpg", "a-06.jpg") + if f in by_file] or [hero] + cps = catchphrases(data) + weather = data["local"].get("weather") or {} + wnotes = (weather.get("noteSets") or {}).get(weather.get("condition") or "") or [] + figure = by_file.get("h-04.jpg") or hero + + facilities = [f.strip() for f in (unit_fact(data["units"][0], "room_facilities") or "").split("·")] + pills = ["독채 · 한 팀만", "창고형 카페"] + pills += [f for f in facilities if f in ("벽난로", "욕조", "주방", "테라스", "OTT")] + if fact(data, "parking") == "true": + pills.append("주차 가능") + if fact(data, "wifi") == "true": + pills.append("와이파이") + + shots = data["media"] + + def shot_button(m, ratio="4 / 3"): + sid = sheets.add(sheet_body(m.get("alt") or place["name"], m.get("category") or "", [], + image=m["url"])) + return ('' + % (sid, pic(m, ratio=ratio))) + + films = [] + for item in section(data, "video"): + vid = item["url"].rstrip("/").split("/")[-1].split("?")[0] + films.append( + '' + '' + '

%s

' + % (e(item["url"]), e(vid), e(vid), e(item.get("caption")))) + + posts = data.get("posts") or [] + + def post_block(row): + return ('
' + '

%s

' + '

%s

' + % (e(row["publishedAt"][:10].replace("-", ". ")), e(row["body"]))) + + near = [] + for spot in data["local"]["attractions"][:5]: + sid = sheets.add(sheet_body(spot["name"], "%s · %s" % (spot["distanceText"], spot["category"]), + [spot.get("description")], image=spot.get("imageUrl"), + out=("네이버에서 보기", naver(spot.get("searchQuery") or spot["name"])))) + near.append('' + % (sid, url(spot.get("imageUrl")), e(spot["name"]), e(spot["name"]), + e(spot["distanceText"]))) + + body = """ +
+
+
%(stage)s
+
+
+
+
+

%(locality)s

+

%(name)s

+

%(tagline)s

+

%(cp0)s

+
+
+
+

오늘 %(temp)s° %(cond)s — %(wline)s

+
+ +
+

THE HOUSE

+

스테이,머뭄 소개

+

%(summary)s

+ %(about0)s +
더 읽기%(about1)s
+
%(pills)s
+
+
%(fig)s
%(figcap)s
+ +
+%(unitA)s +%(unitB)s + +
+
+

GALLERY

+

사진 갤러리 %(shots)d장

+
%(g1)s
+
사진 %(rest)d장 더 보기 +
%(g2)s
+
+
+ +
+
+

FILM

+

ADO2 영상 보기 %(films)d편

+
%(filmrail)s
+
+ +
+
+

JOURNAL

+

스테이,머뭄 소식

+ %(post0)s +
지난 소식 %(npost)d개%(post1)s
+
+ +
+
+

TODAY

+

오늘의 날씨

+

%(temp)s° %(cond)s

+

%(wline)s

+

관측 %(wat)s · open-meteo

+
+ +
+
+

AROUND

+

주변 안내

군산 소개 →
+
%(near)s
+
+ +
+
+

RESERVATION

+

이용안내 및 예약

+ 네이버 예약 + 이용안내 · 예약 요청 +

요금은 날짜와 시즌에 따라 %(price)s입니다. 기준 2인 · 최대 4인(추가 %(extra)s원).

+
+""" % { + "stage": "".join('
%s' + '
' % (url(m["url"]), e(m.get("alt")), "" if i == 0 else ' loading="lazy"') + for i, m in enumerate(stage)), + "locality": e(place["addressLocality"]), + "name": e(place["name"]), + "tagline": e(data["narrative"].get("tagline")), + "cps": e(json.dumps(cps, ensure_ascii=False)), + "cp0": e(cps[0]), + "addr": e(place["roadAddress"]), + "temp": e(weather.get("temperature")), "cond": e(weather.get("condition")), + "wline": e(wnotes[0] if wnotes else ""), + "wat": e((weather.get("observedAt") or "").replace("T", " ")), + "summary": e(data["narrative"].get("summary")), + "about0": "

%s

" % e(data["narrative"]["about"][0]), + "about1": "".join("

%s

" % e(x) for x in data["narrative"]["about"][1:]), + "pills": "".join('%s' % e(x) for x in pills), + "fig": '%s' + % (url(figure["url"]), e(figure.get("alt"))), + "figcap": e(figure.get("alt")), + "unitA": unit_block(data, data["units"][0], sheets, "ROOM A"), + "unitB": unit_block(data, data["units"][1], sheets, "ROOM B"), + "shots": len(shots), "rest": max(0, len(shots) - 4), + "g1": "".join(shot_button(m) for m in shots[:4]), + "g2": "".join(shot_button(m) for m in shots[4:]), + "films": len(films), "filmrail": "".join(films), + "post0": "".join(post_block(x) for x in posts[:1]), + "post1": "".join(post_block(x) for x in posts[1:]), "npost": max(0, len(posts) - 1), + "near": "".join(near), "base": BASE, + "book": e(next((l["url"] for l in data["links"] if l.get("channel") == 7), "#")), + "price": e(unit_fact(data["units"][0], "price_range")), + "extra": f'{int(re.sub(r"[^0-9]", "", fact(data, "extra_person_fee") or "0")):,}', + } + return body, sheets, None, wnotes + + +PAGEHEAD = ('
' + '

%s

' + '

%s

') + + +# ── 페이지 2 · 군산 소개 ────────────────────────────────────────────────────── +def gunsan(data): + local = data["local"] + sheets = Sheets() + weather = local.get("weather") or {} + condition = weather.get("condition") or "" + notes = (weather.get("noteSets") or {}).get(condition) or [] + + def place_card(row, ratio="3 / 2"): + sid = sheets.add(sheet_body(row["name"], "%s · %s" % (row["distanceText"], row["category"]), + [row.get("description")], image=row.get("imageUrl"), + out=("네이버에서 보기", naver(row.get("searchQuery") or row["name"])))) + return ('' + % (sid, walk_bucket(row["distanceText"]), url(row.get("imageUrl")), e(row["name"]), + ratio, e(row["name"]), e(row["distanceText"]), e(row.get("description")))) + + def place_row(row): + sid = sheets.add(sheet_body(row["name"], "%s · %s" % (row["distanceText"], row["category"]), + [row.get("description")], image=row.get("imageUrl"), + out=("네이버에서 보기", naver(row.get("searchQuery") or row["name"])))) + return ('' + % (sid, walk_bucket(row["distanceText"]), e(row["name"]), e(row["distanceText"]))) + + def fest_card(row): + sid = sheets.add(sheet_body(row["name"], "%s · %s" % (row.get("period") or row.get("month"), + row.get("location")), + [row.get("description")], image=row.get("imageUrl"), + out=("네이버에서 보기", naver(row.get("searchQuery") or row["name"])))) + shot = ('%s' + % (url(row["imageUrl"]), e(row["name"]))) if row.get("imageUrl") else ( + '%s' % e(row.get("season") or "")) + return ('' + % (sid, e(row.get("season") or ""), shot, e(row["name"]), + e(row.get("month")), e(row.get("location")))) + + def plan_card(row): + stops = [] + for day in row.get("days") or []: + stops.append('
  • %s %s 시작
  • ' + % (e(day.get("label")), e(day.get("startTime")))) + for stop in day.get("stops") or []: + query = stop.get("searchQuery") or stop["name"].split("·")[-1].strip() + stops.append('
  • %s ' + '%s분%s
  • ' + % (e(naver(query)), e(stop["name"]), e(stop.get("minutes")), + e(stop.get("note")))) + sid = sheets.add(sheet_body(row["name"], "%s · %s" % (row["duration"], row["audience"]), + [row["why"]], + extra='' % "".join(stops))) + first = (row.get("days") or [{}])[0].get("stops") or [] + line = " → ".join("%s %s분" % (s["name"].split("·")[-1].strip(), s.get("minutes") or 0) + for s in first[:4]) + return ('' + % (sid, e(row["duration"]), e(row["name"]), e(row["duration"]), + e(row["audience"]), e(row["why"]), e(line))) + + def song_row(row): + meta = " / ".join(x for x in (row.get("lyricist"), row.get("composer")) if x) + sid = sheets.add(sheet_body( + row["title"], " · ".join(str(x) for x in (row.get("artist"), row.get("year"), meta) if x), + [row.get("story")], + out=("들어보기", row.get("listenUrl") or naver(row["title"])))) + return ('' + % (sid, e(row["title"]), e(row.get("artist")), e(row.get("year") or ""))) + + def face_card(row): + source = row.get("source") or {} + sid = sheets.add(sheet_body(row["name"], " · ".join(str(x) for x in (row.get("years"), row.get("role")) if x), + [row.get("oneLine")], image=row.get("imageUrl"), + out=((source.get("name") or "출처"), source.get("url") or naver(row["name"])))) + return ('' + % (sid, url(row.get("imageUrl")), e(row["name"]), e(row["name"]), + e(row.get("role")), e(row.get("oneLine")))) + + def face_row(row): + source = row.get("source") or {} + sid = sheets.add(sheet_body(row["name"], " · ".join(str(x) for x in (row.get("years"), row.get("role")) if x), + [row.get("oneLine")], image=row.get("imageUrl"), + out=((source.get("name") or "출처"), source.get("url") or naver(row["name"])))) + return ('' + % (sid, e(row["name"]), e(row.get("role")), e(row.get("years") or ""))) + + def chron_row(row): + source = row.get("source") or {} + sid = sheets.add(sheet_body(row["title"], " · ".join(str(x) for x in (row.get("year"), row.get("place")) if x), + [row.get("summary")], image=row.get("imageUrl"), + out=((source.get("name") or "출처"), source.get("url") or naver(row["title"])))) + return ('' + % (sid, e(row["title"]), e(row.get("place") or ""), e(row["year"]))) + + def read_card(row): + source = row.get("source") or {} + sid = sheets.add(sheet_body(row["title"], " · ".join(str(x) for x in (row.get("group"), row.get("year")) if x), + [row.get("body")], + out=((source.get("name") or "출처"), source.get("url") or naver(row["title"])))) + return ('' + % (sid, e(row["title"]), e(row.get("year") or ""), e(row.get("body")))) + + pm_photos = [m for m in data["media"] if m.get("category") in ("외관", "카페", "전망")][:6] + pm_photos += [{"url": a["imageUrl"], "alt": a["name"]} + for a in local["attractions"][:4] if a.get("imageUrl")] + pm_thumbs = "".join( + '' + % ("true" if i == 0 else "false", url(m["url"]), e(m.get("alt"))) + for i, m in enumerate(pm_photos)) + + spots, eats = local["attractions"], local["restaurants"] + walks = [walk_bucket(x["distanceText"]) for x in spots] + eatwalks = [walk_bucket(x["distanceText"]) for x in eats] + fests = sorted(local["festivals"], key=lambda f: (SEASON_ORDER.get(f.get("season"), 9), f.get("month") or "")) + plans, songs = section(data, "itinerary"), section(data, "songs") + durations = [x["duration"] for x in plans] + seasons = [x.get("season") or "" for x in local["festivals"]] + temp = weather.get("temperature") + bucket = ("혹서" if temp >= 33 else "더움" if temp >= 25 else "선선" if temp >= 15 + else "쌀쌀" if temp >= 5 else "추움") if isinstance(temp, (int, float)) else "" + tnotes = (weather.get("tempNoteSets") or {}).get(bucket) or [] + temp_note = tnotes[0] if tnotes else (weather.get("tempNotes") or {}).get(bucket, "") + people = [x for x in section(data, "people") if x.get("imageUrl")] + allpeople = section(data, "people") + chron, reading = section(data, "chronicle"), section(data, "reading") + + body = PAGEHEAD % ("군산", "대문에서 걸어 닿는 자리와, 이 도시가 남긴 이야기. 누르면 상세가 열립니다.") + body += """ +
    + +
    +
    +

    AROUND

    +

    주변 명소 %(nspot)d곳

    + %(spottabs)s +
    %(spots)s
    +
    + +
    +
    +

    EAT

    +

    주변 맛집 %(neat)d곳

    + %(eattabs)s +
    %(eat1)s +
    %(eatrest)d곳 더 보기%(eat2)s
    +
    +
    + +
    +
    +

    POSTCARD

    +

    엽서 쓰기

    +

    사진 고르고 한마디 적으면 엽서 완성

    + +
    %(pmthumbs)s
    + + + +
    + +
    +
    +

    SEASON

    +

    계절별 축제 %(nfest)d

    + %(festtabs)s +
    %(fests)s
    +
    + +
    +
    +

    ITINERARY

    +

    추천 일정 %(nplan)d

    + %(daytabs)s +
    %(plan1)s +
    %(planrest)d개 더 보기%(plan2)s
    +
    +
    + +
    +
    +

    GUNSAN

    +

    군산 이야기 노래 · 인물 · 연표 · 읽기

    +
    +
    +

    MUSIC

    +

    가요 다방 %(nsong)d곡

    + %(song1)s +
    %(songrest)d곡 더 보기%(song2)s
    +
    + +
    +

    PEOPLE

    +

    인물 열전 %(npeople)d명

    +
    %(faces)s
    +
    %(prest)d명 더 보기%(prows)s
    +

    사진이 있는 %(nface)d명을 먼저 뒀습니다.

    +
    + +
    +

    CHRONICLE

    +

    시간의 골목

    + %(chron)s +
    + +
    +

    READING

    +

    군산 읽기 %(nread)d꼭지

    + %(read)s +
    %(readrest)d꼭지 더 보기%(read2)s
    +
    + +
    +
    +

    TODAY

    +

    오늘의 날씨

    +

    %(temp)s° %(cond)s

    +

    %(wfirst)s

    + %(wnotes)s +

    관측 %(wat)s · open-meteo

    +
    + +""" % { + "temp": e(weather.get("temperature")), "cond": e(condition), + "wfirst": e(notes[0] if notes else ""), + "wnotes": "".join('

    %s

    ' % e(x) + for x in ([temp_note] if temp_note else [])), + "wat": e((weather.get("observedAt") or "").replace("T", " ")), + "pmthumbs": pm_thumbs, + "spottabs": tabrow("#spotbox", [(("5분", "걸어서 5분 이내"), walks.count("5분")), + (("10분", "걸어서 10분 이내"), walks.count("10분")), + (("그 밖", "걸어서 10분 이상"), walks.count("그 밖"))]), + "eattabs": tabrow("#eatbox", [(("5분", "걸어서 5분 이내"), eatwalks.count("5분")), + (("10분", "걸어서 10분 이내"), eatwalks.count("10분")), + (("그 밖", "걸어서 10분 이상"), eatwalks.count("그 밖"))]), + "festtabs": tabrow("#festbox", [((s, s), seasons.count(s)) for s in SEASON_ORDER], + flush=True), + "daytabs": tabrow("#daybox", [((d, d), durations.count(d)) + for d in ("1박 2일", "2박 3일")]), + "nspot": len(spots), "spots": "".join(place_card(x) for x in spots), + "neat": len(eats), "eat1": "".join(place_row(x) for x in eats[:8]), + "eat2": "".join(place_row(x) for x in eats[8:]), "eatrest": max(0, len(eats) - 8), + "nfest": len(fests), "fests": "".join(fest_card(x) for x in fests), + "nplan": len(plans), "plan1": "".join(plan_card(x) for x in plans[:4]), + "plan2": "".join(plan_card(x) for x in plans[4:]), "planrest": max(0, len(plans) - 4), + "nsong": len(songs), "song1": "".join(song_row(x) for x in songs[:6]), + "song2": "".join(song_row(x) for x in songs[6:]), "songrest": max(0, len(songs) - 6), + "npeople": len(allpeople), "nface": len(people), + "faces": "".join(face_card(x) for x in people[:4]), + "prest": len(allpeople) - 4, + "prows": "".join(face_row(x) for x in (people[4:] + [y for y in allpeople if not y.get("imageUrl")])), + "chron": "".join(chron_row(x) for x in chron), + "nread": len(reading), "readrest": max(0, len(reading) - 4), + "read": "".join(read_card(x) for x in reading[:4]), + "read2": "".join(read_card(x) for x in reading[4:]), + } + return (body, sheets, + [{"url": url(m["url"]), "alt": m.get("alt") or ""} for m in pm_photos], + notes) + + +# ── 페이지 3 · 이용안내 · 예약 ──────────────────────────────────────────────── +BOOL_LABEL = {"true": "가능", "false": "불가"} +INFO_KEYS = ["check_in_time", "check_out_time", "parking", "wifi", "cooking_allowed", + "pet_allowed", "smoking", "extra_person_fee", "bbq_available", "pickup_service"] + + +def booking(data): + place = data["place"] + sheets = Sheets() + book = next((l["url"] for l in data["links"] if l.get("channel") == 7), "#") + + info_rows = [] + for key in INFO_KEYS: + for f in data["facts"]: + if f["key"] != key: + continue + value = f["value"] + if f.get("type") == "bool": + value = BOOL_LABEL.get(value, value) + elif key == "extra_person_fee": + value = f'{int(re.sub(r"[^0-9]", "", value or "0")):,}원' + info_rows.append('
    %s%s
    ' + % (e(f["label"]), e(value))) + + faqs = "".join('
    %s

    %s

    ' + % (e(f["question"]), e(f["answer"])) + for f in sorted(data["faqs"], key=lambda f: f.get("sortOrder") or 0)) + + body = PAGEHEAD % ("이용안내 · 예약", "객실 두 동의 상세와 요금, 예약하는 방법입니다.") + body += unit_block(data, data["units"][0], sheets, "ROOM A") + body += unit_block(data, data["units"][1], sheets, "ROOM B") + body += """ +
    +
    +

    RESERVATION

    +

    이용안내 및 예약

    + 네이버 예약 — 바로 확정 + %(tel)s +

    요금은 날짜와 시즌에 따라 %(price)s입니다. 인원 추가 %(extra)s원.

    +
    + + +
    +
    +

    INFORMATION

    +

    예약 전 확인

    + %(info)s +
    + +
    +
    +

    이용 규정

    +

    %(cancel)s

    +

    전 구역 금연이며 반려동물은 동반하실 수 없습니다. 주방에서 간단한 조리는 가능하지만, 냄새가 잘 빠지지 않는 조리(생선·고기구이·튀김)는 하실 수 없습니다.

    +
    + +
    +
    +

    Q & A

    +

    자주 묻는 질문 %(nfaq)d

    + %(faqs)s +
    + +
    +
    +

    DIRECTIONS

    +

    오시는 길

    +
    +
    주소
    %(road)s
    +
    지번
    %(jibun)s
    +
    주차
    가능 — 골목이 좁아 대문 앞까지는 차가 들어오지 못합니다. 절골길 초입에 세우고 짐만 들고 걸어 들어오세요.
    +
    + 네이버 지도로 열기 +
    + +
    +
    +

    CHANNELS

    +

    공식 채널

    + %(channels)s +
    +""" % { + "book": e(book), "tel": e(place["phone"]), + "price": e(unit_fact(data["units"][0], "price_range")), + "extra": f'{int(re.sub(r"[^0-9]", "", fact(data, "extra_person_fee") or "0")):,}', + "info": "".join(info_rows), + "cancel": e(fact(data, "cancel_policy")), + "nfaq": len(data["faqs"]), "faqs": faqs, + "road": e(place["roadAddress"]), "jibun": e(place["address"]), + "map": naver(place["name"] + " " + place["roadAddress"]), + "channels": "".join( + '%s' + '열기 \u2197' % (e(l["url"]), e(l["title"])) + for l in data["links"]), + } + return body, sheets + + +LOCAL = [ + ('href="%s/gunsan' % BASE, 'href="gunsan.html'), + ('href="%s/booking' % BASE, 'href="booking.html'), + ('%s/img/' % BASE, '../../img/'), + ('%s/vendor/' % BASE, '../../vendor/'), + ('%s/audio/' % BASE, '../../audio/'), + ('href="%s"' % BASE, 'href="index.html"'), +] + + +def local_copy(doc: str) -> str: + """브라우저에서 바로 열어 보는 판 — 주소를 레포 안 상대경로로 바꾼다. + 배포물이 아니다. 사진을 복사하지 않고 mockup/img 를 그대로 가리킨다.""" + for src, dst in LOCAL: + doc = doc.replace(src, dst) + return doc + + +def main(): + if not SRC.exists(): + raise SystemExit("payload 원본이 없다: %s — 먼저 patch_stay.py 를 돌린다" % SRC) + data = payload() + name = data["place"]["name"] + + pages = [ + ("", home(data), name, data["narrative"].get("summary")), + ("gunsan", gunsan(data), "군산 — " + name, "걸어 닿는 자리 · 먹을 곳 · 계절별 축제 · 추천 하루 · 군산 이야기"), + ("booking", booking(data), "이용안내 · 예약 — " + name, + "객실 두 동의 상세와 요금, 기본 정보와 자주 묻는 질문."), + ] + for slug, built, title, desc in pages: + body, sheets = built[0], built[1] + pm_photos = built[2] if len(built) > 2 else None + wnotes = built[3] if len(built) > 3 else None + doc = shell(data, slug, title, desc, body, sheets.render(), pm_photos, wnotes) + target = (OUT / slug / "index.html") if slug else (OUT / "index.html") + target.parent.mkdir(parents=True, exist_ok=True) + target.write_text(doc, encoding="utf-8") + preview = OUT / "preview" / ((slug or "index") + ".html") + preview.parent.mkdir(parents=True, exist_ok=True) + preview.write_text(local_copy(doc), encoding="utf-8") + print("%-22s %7d자" % (str(target.relative_to(OUT)), len(doc))) + (OUT / "llms.txt").write_text(llms_txt(data), encoding="utf-8") + print("%-22s %7d자" % ("llms.txt", (OUT / "llms.txt").stat().st_size)) + + +if __name__ == "__main__": + main() diff --git a/solution/site/scripts/mockup/build_reading.py b/solution/site/scripts/mockup/build_reading.py index 2e88ced..f766fd9 100644 --- a/solution/site/scripts/mockup/build_reading.py +++ b/solution/site/scripts/mockup/build_reading.py @@ -67,8 +67,9 @@ def naver(title): # 갈래 — 화면에 이 순서로 선다. GROUPS = [ ("문학", "이 도시를 쓴 사람과 그 자리"), + ("인물", "이 도시가 낳은 사람들"), ] -KEEP = {"문학"} +KEEP = {"문학", "인물"} # (갈래, 제목, 글, 연도 또는 None) # ★ 원문을 옮기지 않는다 — 시·소설·가사의 본문은 한 줄도 싣지 않고 제목과 배경만 쓴다. @@ -117,6 +118,86 @@ ITEMS = [ "이어 시인이 나온 도시입니다. 이름만으로는 알기 어려워, '인물 열전' 탭에서 " "한 사람씩 생애와 활동을 봅니다.", None), + # ── 인물 22 ─────────────────────────────────────────────────────────── + # ★ 2026-09-18 대표: "'군산 읽기'는 인물·문학만 담아 랜덤 대신 전체 노출하고 + # 약 30개로 추린다." 인물 열전(57명)은 한 줄짜리 레일이라 읽을 거리가 못 된다 — + # 여기서는 사람마다 세 문장 안쪽으로 **읽는 글**로 세운다. + # ★ 확인되는 것만 적는다. 사람은 살아 있는 이가 많아 더 위험하다 — 출생연도·직업· + # 대표 이력처럼 널리 알려진 것만 쓰고, 일화나 숫자는 보태지 않는다. + ("인물", "채만식을 잇는 이름들", + "군산은 소설가 채만식만 낳은 도시가 아닙니다. 시인 고은과 이병훈·심호택·문효치·" + "이연주·주하림이 이 도시에서 나고 자랐고, 언어학자 김선기와 철학자 고형곤도 " + "여기 사람입니다. 문학과 학문 쪽 이름이 유난히 촘촘한 도시입니다.", None), + ("인물", "김선기", + "1907년 군산에서 태어난 언어학자입니다. 호는 무돌이고, 한글과 국어 연구에 " + "힘쓴 학자이자 교육자였습니다. 1992년에 세상을 떠났습니다.", 1907), + ("인물", "고형곤", + "1906년 군산에서 태어난 철학자입니다. 선(禪)을 철학으로 풀어낸 연구로 알려졌고 " + "대학에서 오래 가르쳤습니다. 아들은 국무총리를 지낸 고건입니다.", 1906), + ("인물", "고건", + "1938년 군산에서 태어난 행정가입니다. 서울시장을 지냈고 제30·35대 국무총리를 " + "두 차례 맡았습니다. 아버지가 철학자 고형곤이라, 한 집에서 학문과 행정이 " + "갈라져 나온 셈입니다.", 1938), + ("인물", "임병찬", + "1851년 옥구(지금의 군산)에서 태어난 구한말 의병장입니다. 1906년 최익현과 함께 " + "전북 태인에서 거병했고, 붙잡혀 대마도로 유배됐습니다. 돌아온 뒤 다시 독립운동을 " + "이어 가다 거문도에 갇혀 단식 끝에 순국했습니다.", 1851), + ("인물", "이수현", + "1895년 군산에서 태어난 독립운동가입니다. 호는 산남이고, 일제강점기 내내 " + "독립운동에 힘썼습니다.", 1895), + ("인물", "반석평", + "조선 중종 때 문신입니다. 노비의 신분에서 학문을 익혀 문과에 급제하고 판서에 " + "올랐습니다. 신분이 사람의 끝을 정하던 시대에 드문 이력이라, 군산이 꼽는 " + "옛 인물 가운데 앞자리에 섭니다.", 1472), + ("인물", "이길여", + "1932년 옥구(지금의 군산)에서 태어난 의료인입니다. 인천에 산부인과를 열어 " + "병원을 키웠고, 그 병원이 지금의 가천대 길병원입니다. 가천대학교를 세워 " + "총장을 맡고 있습니다.", 1932), + ("인물", "강봉균", + "1943년 군산에서 태어난 경제 관료입니다. 재정경제부 장관을 지냈고 군산에서 " + "3선 국회의원을 했습니다. 2017년에 세상을 떠났습니다.", 1943), + ("인물", "김관영", + "1969년 군산에서 태어났습니다. 회계사와 변호사를 거쳐 국회의원을 지냈고, " + "지금은 전북특별자치도지사입니다.", 1969), + ("인물", "김의겸", + "1963년 군산에서 태어난 언론인입니다. 신문 기자로 오래 일하다 청와대 대변인을 " + "맡았고, 뒤에 국회의원이 됐습니다.", 1963), + ("인물", "최길선", + "1946년 군산에서 태어난 조선업 경영인입니다. 현장에서 시작해 현대중공업 " + "회장까지 올랐습니다.", 1946), + ("인물", "김수미", + "1949년 군산에서 태어난 배우입니다. 드라마 「전원일기」의 일용 엄니로 오래 " + "기억되고, 뒤에는 영화와 예능에서도 활동했습니다. 2024년에 세상을 떠났습니다.", 1949), + ("인물", "송새벽", + "1979년 군산에서 태어난 배우입니다. 연극 무대를 거쳐 영화로 옮겨 왔고, 특유의 " + "말투와 표정으로 알려졌습니다.", 1979), + ("인물", "박화요비", + "1982년 군산에서 태어난 가수입니다. R&B 를 주로 부르며 방송과 무대에서 오래 " + "활동해 왔습니다.", 1982), + ("인물", "박경완", + "1972년 군산에서 태어난 야구 포수입니다. SK 와이번스에서 오래 뛰며 한국 야구를 " + "대표하는 포수로 꼽혔고, 은퇴 뒤에는 코치로 일했습니다.", 1972), + ("인물", "차우찬", + "1987년 군산에서 태어난 야구 투수입니다. 삼성과 LG 에서 뛰었고 지금은 해설위원 " + "으로 경기를 중계합니다.", 1987), + ("인물", "오지환", + "1990년 군산에서 태어난 야구 선수입니다. LG 트윈스 내야수로 오래 뛰었습니다.", 1990), + ("인물", "노상래", + "1970년 군산에서 태어난 축구 선수입니다. 공격수로 뛰었고 은퇴 뒤에는 지도자로 " + "일했습니다.", 1970), + ("인물", "박성현", + "1983년 군산에서 태어난 양궁 선수입니다. 군산 소룡초등학교에서 활을 처음 잡아 " + "올림픽 금메달까지 갔습니다. 이 도시에서 나온 가장 널리 알려진 운동 선수 " + "가운데 하나입니다.", 1983), + ("인물", "김광선", + "1964년 군산에서 태어난 권투 선수입니다. 1988년 서울 올림픽 복싱 플라이급에서 " + "금메달을 땄습니다.", 1964), + ("인물", "한왕용", + "1966년 군산에서 태어난 산악인입니다. 히말라야 8000m 급 14좌를 세계에서 열한 " + "번째로 모두 올랐습니다.", 1966), + ("인물", "문호준", + "1997년 군산에서 태어난 프로게이머입니다. 카트라이더 리그에서 가장 많이 우승한 " + "선수로 꼽힙니다.", 1997), # ── 섬과 바다 6 ─────────────────────────────────────────────────────── ("섬과 바다", "고군산군도", "예순 남짓한 섬이 모인 군도입니다. 새만금 방조제가 육지와 신시도를 잇고, 그 뒤로 " @@ -274,11 +355,12 @@ for group, title, body, year in ITEMS: item["year"] = year items.append(item) -# 부제에 전체 개수를 내걸지 않는다 — 화면은 이 중 5~6개만 매번 무작위로 보여준다 -# (2026-09-14 대표: "34개중 15~19개인데 왜 34개라고 써놔?"). 숫자 대신 "올 때마다 -# 다른"으로 적어 실제 화면과 문구가 어긋나지 않게 한다. +# 2026-09-18 대표: "인물·문학만 담아 랜덤 대신 전체 노출하고 약 30개로 추린다." +# 무작위 5~6개를 뽑던 것을 되돌렸다 — 카로셀은 슬라이드 하나 = 꼭지 하나라 전체를 실어도 +# 세로로 길어지지 않는다(전에 스크롤 압박이 났던 것은 31꼭지를 한 화면에 펼쳤을 때다). +# 그래서 부제에 개수를 다시 내걸 수 있다 — 화면에 그만큼 다 선다. env = {"kind": "reading", "version": 1, "title": "군산 읽기", - "subtitle": "이 도시를 쓴 사람과 그 자리", + "subtitle": "이 도시를 쓴 사람과 이 도시가 낳은 사람", "groups": [{"name": name, "note": note} for name, note in GROUPS], "items": items} @@ -296,4 +378,4 @@ SRC.write_text(json.dumps(payload, ensure_ascii=False), encoding="utf-8") counts = {name: sum(1 for i in items if i["group"] == name) for name, _ in GROUPS} print("군산 읽기 " + str(len(items)) + "가지 — " + " · ".join(f"{k} {v}" for k, v in counts.items()) - + " (화면엔 매번 5~6개만 무작위)") + + " (화면에 전부 선다)") diff --git a/solution/site/scripts/mockup/build_stay6.py b/solution/site/scripts/mockup/build_stay6.py index f30dee8..ac66128 100644 --- a/solution/site/scripts/mockup/build_stay6.py +++ b/solution/site/scripts/mockup/build_stay6.py @@ -39,9 +39,9 @@ PAGES = [ # 군산 페이지에는 필요 없어서 주입 css 로 감춘다. ("gunsan", "군산", {"hero", "festival", "local", "itinerary", "story", "songs", "people", "chronicle", "reading"}, - {"reviews", "postcard-maker", "location"}), + {"reviews", "postcard-maker", "location", "hero"}), ("booking", "예약·후기", {"hero", "info", "booking", "faq", "rules", "map"}, - {"postcard-maker"}), + {"postcard-maker", "hero"}), ] # 화면 앵커 id → 그 섹션이 사는 페이지. @@ -55,8 +55,20 @@ ANCHOR_PAGE = { "info": "booking", "booking": "booking", "faq": "booking", "reviews": "booking", } +# 하위 페이지의 머리. +# ★ 실물 대조(2026-09-18, 星のや京都 /dining/ · 모바일 390×844): 하위 페이지에는 히어로가 +# 없다. 얇은 헤더 → 여백 → **페이지 이름 한 줄(가운데·명조)** → 바로 내용이다. +# 사진도 캐치프레이즈도 CTA 도 없다. 홈 히어로를 하위 페이지가 되풀이하는 판은 없었다. NAV_CSS = """ [data-w4d-here] { font-weight: 800; text-decoration: underline; text-underline-offset: 5px; } +.w4d-pagehead { + padding: clamp(2.5rem, 9vw, 4.5rem) 1.25rem clamp(1.75rem, 6vw, 3rem); + text-align: center; +} +.w4d-pagehead h1 { + margin: 0; font-family: var(--font-serif, serif); font-weight: 400; + font-size: clamp(1.75rem, 7vw, 2.4rem); letter-spacing: .04em; line-height: 1.3; +} """ # ★ HTML 을 고쳐도 소용없다 — 리액트가 하이드레이션하면서 헤더를 다시 그려 덮는다(실측). @@ -88,13 +100,31 @@ NAV_JS = """ event.preventDefault(); location.href = to; }, true); - [0, 400, 1200, 3000].forEach(function (ms) { setTimeout(fix, ms); }); - window.addEventListener('pageshow', fix); + var TITLE = %(title)s; + function head() { + if (!TITLE) return; + var header = document.querySelector('#root header'); + if (!header || document.querySelector('.w4d-pagehead')) return; + var band = document.createElement('div'); + band.className = 'w4d-pagehead'; + var h1 = document.createElement('h1'); + h1.textContent = TITLE; + band.appendChild(h1); + header.parentNode.insertBefore(band, header.nextSibling); + } + function tick() { fix(); head(); } + [0, 400, 1200, 3000].forEach(function (ms) { setTimeout(tick, ms); }); + window.addEventListener('pageshow', tick); + if (window.MutationObserver) { + new MutationObserver(tick).observe(document.getElementById('root'), {childList: true, subtree: false}); + } })(); """ +# 하위 페이지는 히어로를 쓰지 않는다(위 실물 대조). 렌더러가 무조건 그리므로 여기서 감춘다. HIDE_CSS = { + "hero": "#top { display: none !important; }", "reviews": "#reviews { display: none !important; }", "postcard-maker": "#postcard-maker { display: none !important; }", "location": "#location { display: none !important; }", @@ -129,11 +159,15 @@ def variant(payload, keep): return out +PAGE_TITLE = {"": None, "gunsan": "군산", "booking": "이용안내 및 예약"} + + def nav_js(current): return NAV_JS % { "base": json.dumps(BASE), "here": json.dumps(current), "page": json.dumps(ANCHOR_PAGE, ensure_ascii=False), + "title": json.dumps(PAGE_TITLE[current], ensure_ascii=False), } diff --git a/solution/site/scripts/mockup/inject.css b/solution/site/scripts/mockup/inject.css index af1f4f5..4a4b1e7 100644 --- a/solution/site/scripts/mockup/inject.css +++ b/solution/site/scripts/mockup/inject.css @@ -25,7 +25,7 @@ border: 0; border-radius: var(--tpl-radius, 0); cursor: pointer; - opacity: 0.75; + opacity: 0.88; } #w4d-mini button:hover { opacity: 1; background: rgb(27 26 21 / 0.06); } #w4d-mini svg { width: 16px; height: 16px; } @@ -43,7 +43,7 @@ color: var(--tpl-accent, #bf2f1b); padding-right: 2px; } -#w4d-mini[data-playing='0'] #w4d-now { opacity: 0.85; font-weight: 400; } +#w4d-mini[data-playing='0'] #w4d-now { opacity: 0.92; font-weight: 400; } @media (max-width: 860px) { #w4d-now { display: none; } } /* 카세트 — 단추가 아니라 표지다. 이 자리가 무엇인지 한눈에 말해 준다. */ @@ -52,7 +52,7 @@ align-items: center; padding: 0 4px 0 2px; color: var(--tpl-text, #1b1a15); - opacity: 0.8; + opacity: 0.9; } #w4d-tape svg { width: 20px; height: 20px; } #w4d-mini[data-playing='1'] #w4d-tape { color: var(--tpl-accent, #bf2f1b); opacity: 1; } @@ -101,7 +101,7 @@ border-bottom: var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15); } .w4d-head-t { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; } -.w4d-head-n { flex: 1 1 auto; font-size: 14px; opacity: 0.5; } +.w4d-head-n { flex: 1 1 auto; font-size: 14px; opacity: 0.75; } #w4d-panel .w4d-head button { display: inline-flex; width: 28px; @@ -113,7 +113,7 @@ background: transparent; border: 0; cursor: pointer; - opacity: 0.6; + opacity: 0.8; } #w4d-panel .w4d-head button:hover { opacity: 1; } #w4d-panel .w4d-head svg { width: 14px; height: 14px; } @@ -203,12 +203,12 @@ font-size: 14px; white-space: nowrap; text-overflow: ellipsis; - opacity: 0.85; + opacity: 0.92; } .w4d-time { flex: 0 0 auto; font-size: 14px; - opacity: 0.6; + opacity: 0.8; font-variant-numeric: tabular-nums; } @@ -229,7 +229,7 @@ #root div.border-line.flex.flex-col.gap-3.border-t.pt-6 { border-top-width: 0; } /* 사진 저작자 표시 — 출처 줄과 같은 크기, 한 단 더 옅게. */ -.w4d-credit { margin-top: 2px; font-size: 14px; opacity: 0.85; } +.w4d-credit { margin-top: 2px; font-size: 14px; opacity: 0.92; } /* ★ 모바일 헤더에서 전화 단추를 접는다 (2026-09-11 사장님: "저 전화 아이콘은 빼도 되잖아"). 좁은 화면 헤더에 상호 + 플레이어 3개 + 전화 + 메뉴가 다 서서 난잡했다. @@ -258,7 +258,7 @@ 문장 길이가 달라 한 줄↔두 줄이 오갈 때 히어로 아래가 튀는 것을 막는다. */ /* 대표 문구 아래에서 도는 줄 (2026-09-11). 대표 문구보다 한 단 작고 옅게 둔다 — 둘이 같은 크기·같은 농도면 어느 쪽이 숙소의 한 줄인지 안 읽힌다. */ -.w4d-sub { margin-top: 0.5rem; font-size: var(--fs-sm, 0.9375rem); line-height: 1.6; opacity: 0.75; } +.w4d-sub { margin-top: 0.5rem; font-size: var(--fs-sm, 0.9375rem); line-height: 1.6; opacity: 0.88; } .w4d-line { display: block; } .w4d-line--out { opacity: 0; @@ -349,7 +349,7 @@ flex-wrap: nowrap; justify-content: flex-start; gap: 14px; - padding: 6px 4px 14px; + padding: 6px 4px 22px; /* 렌더러가 이 div 자체에 준 mt-4 를 지운다 — 지금은 이 div 가 `.slider-viewport` 안에 들어가 있어, 그 여백이 화살표 줄(위)이 아니라 스크롤 상자 안쪽 빈 공간이 됐다. 간격은 화살표 줄의 mt-4(inject.js `startSongsRail`)가 대신 준다. */ @@ -369,6 +369,7 @@ #songs button:has(> .w4-disc-mini) > .w4-disc-mini + span { margin-top: 5px; font-size: 14px; + line-height: 1.4; } /* 고른 판만 살짝 들어 올린다 — "뽑아 든 판" 표시. 선택 자체(테두리)는 React 가 인라인 스타일로 이미 그린다(`boxShadow`); 여기선 그 위에 얹는 동작만 더한다. */ @@ -383,6 +384,13 @@ #songs .slider-viewport { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); + /* ★ 원판이 위아래로 잘렸다 (2026-09-18 대표: "원판 아직도 잘린다.. overflow hidden풀어"). + 안쪽 :has() div 의 padding 을 늘려도 소용없었다 — 실제로 자르는 경계는 이 뷰포트다. + `.slider-viewport` 는 overflow-x 만 hidden/auto 로 정하는데, 브라우저는 한 축이라도 + visible 이 아니면 나머지 축도 auto 로 계산한다(CSS Overflow 스펙) — 세로도 이 상자의 + padding-box 에서 잘린다. 판이 hover·선택으로 최대 6px 떠오르고 그림자가 그 위로 + 더 번지므로, 뷰포트 자체에 여유를 준다. */ + padding-block: 14px 4px; } /* @@ -449,7 +457,7 @@ border: 1px solid var(--tpl-border, #bcb49e); resize: none; /* 2026-09-14 대표: "textarea 크기 못바꾸게" — 늘리면 옆 캔버스와 높이가 어긋난다 */ } -.w4d-pm-count { margin: 4px 0 14px; font-size: 14px; text-align: right; opacity: 0.85; } +.w4d-pm-count { margin: 4px 0 14px; font-size: 14px; text-align: right; opacity: 0.92; } .w4d-pm-actions { display: flex; flex-wrap: wrap; gap: 10px; } .w4d-pm-actions button { padding: 9px 16px; @@ -460,7 +468,7 @@ } .w4d-pm-share { background: var(--tpl-primary, #1b1a15); color: var(--tpl-bg, #fff); } .w4d-pm-save { background: transparent; color: var(--tpl-text, #1b1a15); } -.w4d-pm-hint { margin: 10px 0 0; font-size: 14px; opacity: 0.6; } +.w4d-pm-hint { margin: 10px 0 0; font-size: 14px; opacity: 0.8; } @media (max-width: 480px) { .w4d-pm-canvas { width: 100%; } } @@ -508,7 +516,7 @@ letter-spacing: 0.18em; color: color-mix(in oklab, var(--tpl-accent, #bf2f1b) 62%, var(--tpl-text, #1b1a15)); } -.w4d-read-year { font-weight: 400; letter-spacing: 0.06em; opacity: 0.7; } +.w4d-read-year { font-weight: 400; letter-spacing: 0.06em; opacity: 0.85; } .w4d-read-card h3 { margin: 0 0 10px; padding-bottom: 10px; @@ -524,7 +532,7 @@ line-height: 1.8; text-align: justify; word-break: keep-all; - opacity: 0.88; + opacity: 0.94; } .w4d-read-src { margin-top: 14px; @@ -532,7 +540,7 @@ border-top: 1px dashed var(--tpl-border, #bcb49e); font-size: 14px; font-style: italic; - opacity: 0.6; + opacity: 0.8; } .w4d-read-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } /* .w4d-read-flag(확인필요 배지) 삭제 — 2026-09-14 대표: "확인필요 없애고 링크는 @@ -588,7 +596,7 @@ color: var(--tpl-bg, #fff); font-weight: 700; } - .w4d-gal-total { margin-left: 8px; font-size: 14px; opacity: 0.85; } + .w4d-gal-total { margin-left: 8px; font-size: 14px; opacity: 0.92; } } /* ── 768~1023px 에서 하단 탭바가 푸터 마지막 줄을 덮는 것 막기 ───────────────── diff --git a/solution/site/scripts/mockup/inject.js b/solution/site/scripts/mockup/inject.js index e10da23..0323eda 100644 --- a/solution/site/scripts/mockup/inject.js +++ b/solution/site/scripts/mockup/inject.js @@ -767,7 +767,7 @@ }); html += ''; } - html += '' + + html += '' + '1 / ' + picked.length + ''; var panel = document.createElement('div'); @@ -1009,7 +1009,7 @@ // 카운터 — Carousel.tsx 도 점(dots)이 12개를 넘으면 점은 숨기고 이 숫자 줄만 남긴다. // 여기는 25~50곡이라 항상 그 경우다. var counter = document.createElement('p'); - counter.className = 'mt-2 text-center text-current/55 text-[length:var(--fs-xs)] tabular-nums'; + counter.className = 'mt-2 text-center text-current/90 text-[length:var(--fs-xs)] tabular-nums'; counter.innerHTML = '1 / ' + track.children.length; viewport.parentNode.insertBefore(counter, viewport.nextSibling); @@ -1876,7 +1876,7 @@ if (footer.querySelector('a[href="' + HREF + '"]')) return true; // 번들이 이미 그렸다 var box = footer.querySelector('.shell') || footer.firstElementChild || footer; var p = document.createElement('p'); - p.className = 'pt-3 text-[length:var(--fs-xs)] opacity-55'; + p.className = 'pt-3 text-[length:var(--fs-xs)] opacity-85'; p.innerHTML = 'AI O2O의 Web4Ai로 만든 사이트입니다.'; box.appendChild(p); diff --git a/solution/site/scripts/mockup/patch_stay.py b/solution/site/scripts/mockup/patch_stay.py index 7924d15..c77b5c9 100644 --- a/solution/site/scripts/mockup/patch_stay.py +++ b/solution/site/scripts/mockup/patch_stay.py @@ -453,9 +453,9 @@ for _section in payload["theme"]["sections"]: # **있는데 꺼진** 상태라 `hasSection()` 이 참이고, 그 분기는 "사장님이 끈 것" 으로 존중한다. # ★ 지어낸 값이 없다. 요금·인원·취소 규정은 payload 의 확인된 fact 뿐이고 # (`derive.ts stayBookingView`), 근거가 하나도 없으면 섹션째 안 그린다. -for _section in payload["theme"]["sections"]: - if _section["id"] == "booking": - _section["enabled"] = True +# for _section in payload["theme"]["sections"]: +# if _section["id"] == "booking": +# _section["enabled"] = True # ── 네이버 플레이스 → 네이버 예약 ──────────────────────────────────────────── for _link in payload["links"]: @@ -466,6 +466,12 @@ for _link in payload["links"]: # ── index.html 조립 ────────────────────────────────────────────────────────── html = (SP / "orig" / "index.html").read_text(encoding="utf-8") +_FADED = {"50": "85", "55": "85", "60": "85", "65": "90", "70": "90", "75": "90", + "80": "95", "85": "95"} +html = re.sub(r"(?' +MADE_BY = ('

    ' 'AI O2O' '의 Web4Ai로 만든 사이트입니다.

    ') diff --git a/solution/site/scripts/mockup/vendor/index-0DqrdnlD.js b/solution/site/scripts/mockup/vendor/index-0DqrdnlD.js new file mode 100644 index 0000000..0b3bf62 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/index-0DqrdnlD.js @@ -0,0 +1,351 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function c(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();const Tb="modulepreload",Ab=function(s){return"/"+s},Oh={},kb=function(r,c,u){let f=Promise.resolve();if(c&&c.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(c.map(p=>{if(p=Ab(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Tb,y||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Ds={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Cb(){if(Dh)return Ds;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function c(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ds.Fragment=r,Ds.jsx=c,Ds.jsxs=c,Ds}var Rh;function _b(){return Rh||(Rh=1,$o.exports=Cb()),$o.exports}var a=_b(),Go={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Mb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,H={};function L(E,$,K){this.props=E,this.context=$,this.refs=H,this.updater=K||N}L.prototype.isReactComponent={},L.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=L.prototype;function R(E,$,K){this.props=E,this.context=$,this.refs=H,this.updater=K||N}var Q=R.prototype=new Y;Q.constructor=R,A(Q,L.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function J(){}var X={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function le(E,$,K){var F=K.ref;return{$$typeof:s,type:E,key:$,ref:F!==void 0?F:null,props:K}}function Z(E,$){return le(E.type,$,E.props)}function ne(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function ye(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return $[K]})}var Ge=/\/+/g;function Xe(E,$){return typeof E=="object"&&E!==null&&E.key!=null?ye(""+E.key):$.toString(36)}function re(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,$,K,F,ce){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),$,K,F,ce)}}if(oe)return ce=ce(E),oe=F===""?"."+Xe(E,0):F,q(ce)?(K="",oe!=null&&(K=oe.replace(Ge,"$&/")+"/"),O(ce,$,K,"",function(at){return at})):ce!=null&&(ne(ce)&&(ce=Z(ce,K+(ce.key==null||E&&E.key===ce.key?"":(""+ce.key).replace(Ge,"$&/")+"/")+oe)),$.push(ce)),1;oe=0;var Ee=F===""?".":F+":";if(q(E))for(var ze=0;ze>>1,je=O[he];if(0>>1;hef(K,ae))Ff(ce,K)?(O[he]=ce,O[F]=ae,he=F):(O[he]=K,O[$]=ae,he=$);else if(Ff(ce,ae))O[he]=ce,O[F]=ae,he=F;else break e}}return V}function f(O,V){var ae=O.sortIndex-V.sortIndex;return ae!==0?ae:O.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Q(O){for(var V=c(p);V!==null;){if(V.callback===null)u(p);else if(V.startTime<=O)u(p),V.sortIndex=V.expirationTime,r(g,V);else break;V=c(p)}}function q(O){if(A=!1,Q(O),!N)if(c(g)!==null)N=!0,J||(J=!0,ye());else{var V=c(p);V!==null&&re(q,V.startTime-O)}}var J=!1,X=-1,I=5,le=-1;function Z(){return H?!0:!(s.unstable_now()-leO&&Z());){var he=v.callback;if(typeof he=="function"){v.callback=null,j=v.priorityLevel;var je=he(v.expirationTime<=O);if(O=s.unstable_now(),typeof je=="function"){v.callback=je,Q(O),V=!0;break t}v===c(g)&&u(g),Q(O)}else u(g);v=c(g)}if(v!==null)V=!0;else{var E=c(p);E!==null&&re(q,E.startTime-O),V=!1}}break e}finally{v=null,j=ae,w=!1}V=void 0}}finally{V?ye():J=!1}}}var ye;if(typeof R=="function")ye=function(){R(ne)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Xe=Ge.port2;Ge.port1.onmessage=ne,ye=function(){Xe.postMessage(null)}}else ye=function(){L(ne,0)};function re(O,V){X=L(function(){O(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125he?(O.sortIndex=ae,r(p,O),c(g)===null&&O===c(p)&&(A?(Y(X),X=-1):A=!0,re(q,ae-he))):(O.sortIndex=je,r(g,O),N||w||(N=!0,J||(J=!0,ye()))),O},s.unstable_shouldYield=Z,s.unstable_wrapCallback=function(O){var V=j;return function(){var ae=j;j=V;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function Db(){return Bh||(Bh=1,Xo.exports=Ob()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Rb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Rb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Lb(){if(Gh)return Rs;Gh=1;var s=Db(),r=fu(),c=Ub();function u(e){var t="https://react.dev/errors/"+e;if(1je||(e.current=he[je],he[je]=null,je--)}function K(e,t){je++,he[je]=e.current,e.current=t}var F=E(null),ce=E(null),fe=E(null),oe=E(null);function Ee(e,t){switch(K(fe,t),K(ce,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(F),K(F,e)}function ze(){$(F),$(ce),$(fe)}function at(e){e.memoizedState!==null&&K(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(K(ce,e),K(F,l))}function Me(e){ce.current===e&&($(F),$(ce)),oe.current===e&&($(oe),Cs._currentValue=ae)}var te,Ae;function Oe(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[n]!==C[i]){var U=` +`+S[n].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=n&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Oe(l):""}function Wt(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return Oe("Activity");default:return""}}function sl(e){try{var t="",l=null;do t+=Wt(e,l),l=e,e=e.return;while(e);return t}catch(n){return` +Error generating stack: `+n.message+` +`+n.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Bn=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,qn=s.unstable_UserBlockingPriority,$a=s.unstable_NormalPriority,$n=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Gn=s.log,Yn=s.unstable_setDisableYieldValue,il=null,vt=null;function rl(e){if(typeof Gn=="function"&&Yn(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(il,e)}catch{}}var yt=Math.clz32?Math.clz32:Is,zr=Math.log,Tr=Math.LN2;function Is(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ga=256,ga=262144,ba=4194304;function cl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ya(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=n&134217727;return b!==0?(n=b&~o,n!==0?i=cl(n):(h&=b,h!==0?i=cl(h):l||(l=b&~e,l!==0&&(i=cl(l))))):(b=n&~o,b!==0?i=cl(b):h!==0?i=cl(h):l||(l=n&~e,l!==0&&(i=cl(l)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:i}function $l(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ba;return ba<<=1,(ba&62914560)===0&&(ba=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function px(e,t,l,n,i,o){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var jx=/[\n"\\]/g;function $t(e){return e.replace(jx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,n,i,o,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):n!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,n,i,o,h,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||l!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=b?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ja(e,t,l,n){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,n,i="value"in Yl?Yl.value:Yl.textContent,o=i.length;for(e=0;e=In),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Jx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pa=!1;function Ix(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Wx(e,t){if(Pa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Yl=null,Pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ig=jl&&"documentMode"in document&&11>=document.documentMode,en=null,Fr=null,ts=null,Ir=!1;function wf(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ir||en==null||en!==li(n)||(n=en,"selectionStart"in n&&Jr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ts&&es(ts,n)||(ts=n,n=Ii(Fr,"onSelect"),0>=h,i-=h,ol=1<<32-yt(t)+i|l<me?(be=ee,ee=null):be=ee.sibling;var we=M(T,ee,k[me],B);if(we===null){ee===null&&(ee=be);break}e&&ee&&we.alternate===null&&t(T,ee),z=o(we,z,me),Se===null?se=we:Se.sibling=we,Se=we,ee=be}if(me===k.length)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;meme?(be=ee,ee=null):be=ee.sibling;var fa=M(T,ee,we.value,B);if(fa===null){ee===null&&(ee=be);break}e&&ee&&fa.alternate===null&&t(T,ee),z=o(fa,z,me),Se===null?se=fa:Se.sibling=fa,Se=fa,ee=be}if(we.done)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;!we.done;me++,we=k.next())we=G(T,we.value,B),we!==null&&(z=o(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return ve&&Sl(T,me),se}for(ee=n(ee);!we.done;me++,we=k.next())we=D(ee,T,me,we.value,B),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?me:we.key),z=o(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return e&&ee.forEach(function(zb){return t(T,zb)}),ve&&Sl(T,me),se}function Ue(T,z,k,B){if(typeof k=="object"&&k!==null&&k.type===A&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case w:e:{for(var se=k.key;z!==null;){if(z.key===se){if(se=k.type,se===A){if(z.tag===7){l(T,z.sibling),B=i(z,k.props.children),B.return=T,T=B;break e}}else if(z.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===I&&ka(se)===z.type){l(T,z.sibling),B=i(z,k.props),rs(B,k),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}k.type===A?(B=wa(k.props.children,T.mode,B,k.key),B.return=T,T=B):(B=hi(k.type,k.key,k.props,null,T.mode,B),rs(B,k),B.return=T,T=B)}return h(T);case N:e:{for(se=k.key;z!==null;){if(z.key===se)if(z.tag===4&&z.stateNode.containerInfo===k.containerInfo&&z.stateNode.implementation===k.implementation){l(T,z.sibling),B=i(z,k.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(k,T.mode,B),B.return=T,T=B}return h(T);case I:return k=ka(k),Ue(T,z,k,B)}if(re(k))return P(T,z,k,B);if(ye(k)){if(se=ye(k),typeof se!="function")throw Error(u(150));return k=se.call(k),ie(T,z,k,B)}if(typeof k.then=="function")return Ue(T,z,ji(k),B);if(k.$$typeof===R)return Ue(T,z,gi(T,k),B);Ni(T,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,k),B.return=T,T=B):(l(T,z),B=ac(k,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,k,B){try{is=0;var se=Ue(T,z,k,B);return dn=null,se}catch(ee){if(ee===fn||ee===vi)throw ee;var Se=Mt(29,ee,null,T.mode);return Se.lanes=B,Se.return=T,Se}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Kl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Te&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=mi(e),_f(e,null,l),t}return di(e,n,t,l),mi(e)}function cs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var i=null,o=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};o===null?i=o=h:o=o.next=h,l=l.next}while(l!==null);o===null?i=o=t:o=o.next=t}else i=o=t;l={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function os(){if(vc){var e=un;if(e!==null)throw e}}function us(e,t,l,n){vc=!1;var i=e.updateQueue;Kl=!1;var o=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?o=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(o!==null){var G=i.baseState;h=0,U=C=S=null,b=o;do{var M=b.lane&-536870913,D=M!==b.lane;if(D?(ge&M)===M:(n&M)===M){M!==0&&M===on&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var P=e,ie=b;M=t;var Ue=l;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){G=P.call(Ue,G,M);break e}G=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,M=typeof P=="function"?P.call(Ue,G,M):P,M==null)break e;G=v({},G,M);break e;case 2:Kl=!0}}M=b.callback,M!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[M]:D.push(M))}else D={lane:M,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=G):U=U.next=D,h|=M;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=G),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,o===null&&(i.shared.lanes=0),ta|=h,e.lanes=h,e.memoizedState=G}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;eo?o:8;var h=O.T,b={};O.T=b,Hc(e,!1,t,l);try{var S=i(),C=O.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=pg(S,n);ms(e,t,U,Lt(e))}else ms(e,t,n,Lt(e))}catch(G){ms(e,t,{then:function(){},status:"rejected",reason:G},Lt())}finally{V.p=o,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function jg(){}function Uc(e,t,l,n){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?jg:function(){return kd(e),l(n)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),ms(e,t.next.queue,{},Lt())}function Lc(){return ft(Cs)}function Cd(){return Fe().memoizedState}function _d(){return Fe().memoizedState}function Ng(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Jl(l);var n=Fl(t,e,l);n!==null&&(kt(n,t,l),cs(n,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function Sg(e,t,l){var n=Lt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,n),l!==null&&(kt(l,e,n),Dd(l,t,n)))}function Md(e,t,l){var n=Lt();ms(e,t,l,n)}function ms(e,t,l,n){var i={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var h=t.lastRenderedState,b=o(h,l);if(i.hasEagerState=!0,i.eagerState=b,_t(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,n),l!==null)return kt(l,e,n),Dd(l,t,n),!0}return!1}function Hc(e,t,l,n){if(n={lane:2,revertLane:go(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,n,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){hn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Hu(e,l)}}var hs={readContext:ft,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};hs.useEffectEvent=Qe;var Rd={readContext:ft,use:Ai,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var n=e();if(Ma){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=jt();if(l!==void 0){var i=l(t);if(Ma){rl(!0);try{l(t)}finally{rl(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Sg.bind(null,de,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=jt();return Rc(l,e,t)},useTransition:function(){var e=_c(!1);return e=Td.bind(null,de,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=de,i=jt();if(ve){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ge&127)!==0||ld(n,t,l)}i.memoizedState=l;var o={value:l,getSnapshot:t};return i.queue=o,bd(nd.bind(null,n,o,e),[e]),n.flags|=2048,xn(9,{destroy:void 0},ad.bind(null,n,o,l,t),null),l},useId:function(){var e=jt(),t=Le.identifierPrefix;if(ve){var l=ul,n=ol;l=(n&~(1<<32-yt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?h.createElement(i,{is:n.is}):h.createElement(i)}}o[ot]=t,o[St]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=o;e:switch(mt(o,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&kl(t)}}return qe(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&kl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,rn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,i=ut,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Vl(t,!0)}else e=Wi(e).createTextNode(n),e[ot]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=rn(t),l!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ot]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=rn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ot]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Li(t,t.updateQueue),qe(t),null);case 4:return ze(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if($(Je),n=t.memoizedState,n===null)return qe(t),null;if(i=(t.flags&128)!==0,o=n.rendering,o===null)if(i)xs(n,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=wi(e),o!==null){for(t.flags|=128,xs(n,!1),e=o.updateQueue,t.updateQueue=e,Li(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return K(Je,Je.current&1|2),ve&&Sl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&pt()>Gi&&(t.flags|=128,i=!0,xs(n,!1),t.lanes=4194304)}else{if(!i)if(e=wi(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Li(t,e),xs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!ve)return qe(t),null}else 2*pt()-n.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,i=!0,xs(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=pt(),e.sibling=null,l=Je.current,K(Je,i?l&1|2:l&1),ve&&Sl(t,n.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Li(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&$(Aa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(Ie),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ag(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(Ie),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Je),null;case 4:return ze(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&$(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(Ie),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(Ie),ze();break;case 26:case 27:case 5:Me(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:$(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&$(Aa);break;case 24:El(Ie)}}function gs(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){n=void 0;var o=l.create,h=l.inst;n=o(),h.destroy=n}l=l.next}while(l!==i)}}catch(b){Ce(t,t.return,b)}}function Pl(e,t,l){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){var h=n.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Ce(i,S,U)}}}n=n.next}while(n!==o)}}catch(U){Ce(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(n){Ce(e,e.return,n)}}}function rm(e,t,l){l.props=Oa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ce(e,t,n)}}function bs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(i){Ce(e,t,i)}}function fl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Ce(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(i){Ce(e,e.return,i)}}function Pc(e,t,l){try{var n=e.stateNode;Fg(n,e.type,l,t),n[St]=t}catch(i){Ce(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ia(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ia(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(n!==4&&(n===27&&ia(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&ia(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);mt(t,n,l),t[ot]=e,t[St]=l}catch(o){Ce(e,e.return,o)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function kg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{l.nodeType,o.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,G=e,M=null;t:for(;;){for(var D;G!==l||i!==0&&G.nodeType!==3||(b=h+i),G!==o||n!==0&&G.nodeType!==3||(S=h+n),G.nodeType===3&&(h+=G.nodeValue.length),(D=G.firstChild)!==null;)M=G,G=D;for(;;){if(G===e)break t;if(M===l&&++C===i&&(b=h),M===o&&++U===n&&(S=h),(D=G.nextSibling)!==null)break;G=M,M=G.parentNode}G=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),mt(o,n,l),o[ot]=e,nt(o),n=o;break e;case"link":var h=gh("link","href",i).get(n+(l.href||""));if(h){for(var b=0;bUe&&(h=Ue,Ue=ie,ie=h);var T=jf(b,ie),z=jf(b,Ue);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var k=G.createRange();k.setStart(T.node,T.offset),D.removeAllRanges(),ie>Ue?(D.addRange(k),D.extend(z.node,z.offset)):(k.setEnd(z.node,z.offset),D.addRange(k))}}}}for(G=[],D=b;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bl?32:l,O.T=null,l=oo,oo=null;var o=aa,h=Rl;if(lt=0,jn=aa=null,Rl=0,(Te&6)!==0)throw Error(u(331));var b=Te;if(Te|=4,Nm(o.current),vm(o,o.current,h,l),Te=b,ws(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(il,o)}catch{}return!0}finally{V.p=i,O.T=n,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=Gc(e.stateNode,t,2),e=Fl(e,t,2),e!==null&&(Xn(e,2),dl(e))}function Ce(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(la===null||!la.has(n))){e=Yt(l,e),l=Yd(2),n=Fl(t,l,2),n!==null&&(Xd(l,n,t,e),Xn(n,2),dl(n));break}}t=t.return}}function ho(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Mg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(l)||(so=!0,i.add(l),e=Lg.bind(null,e,t,l),t.then(e,e))}function Lg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ge&l)===l&&(Ve===4||Ve===3&&(ge&62914560)===ge&&300>pt()-$i?(Te&2)===0&&Nn(e,0):io|=l,yn===ge&&(yn=0)),dl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Sa(e,t),e!==null&&(Xn(e,t),dl(e))}function Hg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Bg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),Ym(e,l)}function qg(e,t){return Pt(e,t)}var Ki=null,wn=null,po=!1,Ji=!1,xo=!1,sa=0;function dl(e){e!==wn&&e.next===null&&(wn===null?Ki=wn=e:wn=wn.next=e),Ji=!0,po||(po=!0,Gg())}function ws(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,n=Ki;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var o=0;else{var h=n.suspendedLanes,b=n.pingedLanes;o=(1<<31-yt(42|e)+1)-1,o&=i&~(h&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(l=!0,Zm(n,o))}else o=ge,o=Ya(n,n===Le?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||$l(n,o)||(l=!0,Zm(n,o));n=n.next}while(l);xo=!1}}function $g(){Xm()}function Xm(){Ji=po=!1;var e=0;sa!==0&&Wg()&&(e=sa);for(var t=pt(),l=null,n=Ki;n!==null;){var i=n.next,o=Qm(n,t);o===0?(n.next=null,l===null?Ki=i:l.next=i,i===null&&(wn=l)):(l=n,(e!==0||(o&3)!==0)&&(Ji=!0)),n=i}lt!==0&<!==5||ws(e),sa!==0&&(sa=0)}function Qm(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,G=S.initiatorType;U&&th(G)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var n=En;if(n&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),mt(t,"link",e),nt(t),n.head.appendChild(t)))}}function rb(e){Ul.D(e),mh("dns-prefetch",e,null)}function cb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function ob(e,t,l){Ul.L(e,t,l);var n=En;if(n&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var o=i;switch(t){case"style":o=zn(e);break;case"script":o=Tn(e)}Jt.has(o)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(o,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(As(o))||t==="script"&&n.querySelector(ks(o))||(t=n.createElement("link"),mt(t,"link",e),nt(t),n.head.appendChild(t)))}}function ub(e,t){Ul.m(e,t);var l=En;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(n)+'"][href="'+$t(e)+'"]',o=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Tn(e)}if(!Jt.has(o)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(o,e),l.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(o)))return}n=l.createElement("link"),mt(n,"link",e),nt(n),l.head.appendChild(n)}}}function fb(e,t,l){Ul.S(e,t,l);var n=En;if(n&&e){var i=Za(n).hoistableStyles,o=zn(e);t=t||"default";var h=i.get(o);if(!h){var b={loading:0,preload:null};if(h=n.querySelector(As(o)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(o))&&Mo(e,l);var S=h=n.createElement("link");nt(S),mt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(o,h)}}}function db(e,t){Ul.X(e,t);var l=En;if(l&&e){var n=Za(l).hoistableScripts,i=Tn(e),o=n.get(i);o||(o=l.querySelector(ks(i)),o||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),o=l.createElement("script"),nt(o),mt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(i,o))}}function mb(e,t){Ul.M(e,t);var l=En;if(l&&e){var n=Za(l).hoistableScripts,i=Tn(e),o=n.get(i);o||(o=l.querySelector(ks(i)),o||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),o=l.createElement("script"),nt(o),mt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(i,o))}}function hh(e,t,l,n){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=zn(l.href),l=Za(i).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=zn(l.href);var o=Za(i).hoistableStyles,h=o.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=i.querySelector(As(e)))&&!o._p&&(h.instance=o,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),o||hb(i,e,l,h.state))),t&&n===null)throw Error(u(528,""));return h}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Tn(l),l=Za(i).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function zn(e){return'href="'+$t(e)+'"'}function As(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function hb(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),mt(t,"link",l),nt(t),e.head.appendChild(t))}function Tn(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(n)return t.instance=n,nt(n),n;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),nt(n),mt(n,"style",i),er(n,l.precedence,e),t.instance=n;case"stylesheet":i=zn(l.href);var o=e.querySelector(As(i));if(o)return t.state.loading|=4,t.instance=o,nt(o),o;n=ph(l),(i=Jt.get(i))&&Mo(n,i),o=(e.ownerDocument||e).createElement("link"),nt(o);var h=o;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),mt(o,"link",n),t.state.loading|=4,er(o,l.precedence,e),t.instance=o;case"script":return o=Tn(l.src),(i=e.querySelector(ks(o)))?(t.instance=i,nt(i),i):(n=l,(i=Jt.get(o))&&(n=v({},l),Oo(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),mt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,er(n,l.precedence,e));return t.instance}function er(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,o=i,h=0;h title"):null)}function pb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xb(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=zn(n.href),o=t.querySelector(As(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=o,nt(o);return}o=t.ownerDocument||t,n=ph(n),(i=Jt.get(i))&&Mo(n,i),o=o.createElement("link"),nt(o);var h=o;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),mt(o,"link",n),l.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function gb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(bb,e),ar=null,lr.call(e))}function bb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var n=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=Lb(),Yo.exports}var au=Hb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,c,u)=>u?u.toUpperCase():c.toLowerCase()),Xh=s=>{const r=qb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,c,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===c).join(" ").trim(),$b=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Gb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yb=_.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>_.createElement("svg",{ref:g,...Gb,width:r,height:r,stroke:s,strokeWidth:u?Number(c)*24/Number(r):c,className:Mp("lucide",f),...!d&&!$b(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>_.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const c=_.forwardRef(({className:u,...f},d)=>_.createElement(Yb,{ref:d,iconNode:r,className:Mp(`lucide-${Bb(Xh(s))}`,`lucide-${s}`,u),...f}));return c.displayName=Xh(s),c};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=_e("arrow-up-right",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Vb=_e("bed-double",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Kb=_e("calendar-check",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Fb=_e("car",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],La=_e("chevron-right",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l0=_e("clock",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],n0=_e("cloud-rain",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],i0=_e("cloud-snow",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],c0=_e("cloud",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],u0=_e("copy",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],d0=_e("external-link",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],h0=_e("instagram",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=_e("mail",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=_e("menu",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M5 12h14",key:"1ays0h"}]],y0=_e("minus",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],gt=_e("phone",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],w0=_e("play",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],z0=_e("plus",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],A0=_e("rotate-ccw",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],C0=_e("sun",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],M0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",O0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],R0=_e("youtube",D0),Rp=_.createContext(null);function U0({payload:s,children:r}){return a.jsx(Rp.Provider,{value:s,children:r})}function W(){const s=_.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function L0(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[a.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),a.jsxs("g",{className:"w4d-reel",children:[a.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),a.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),a.jsxs("g",{className:"w4d-reel",children:[a.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),a.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),a.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function H0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M8 5v14l11-7z"})})}function B0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function q0(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[a.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),a.jsx("path",{d:"M19 17.5V9l3 1.2"}),a.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function $0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:a.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),c=Math.floor(s%60);return`${r}:${c<10?"0":""}${c}`}function Up(){const s=W(),r=(s.songs??[]).filter(q=>q.audioUrl),[c,u]=_.useState(0),[f,d]=_.useState(!1),[m,x]=_.useState(!1),[g,p]=_.useState({now:0,total:0}),[y,v]=_.useState({}),j=_.useRef(null),w=_.useRef(null),N=_.useRef(null),A=r.length;_.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const H=_.useCallback(()=>{var I;const q=document.querySelector("header"),J=q==null?void 0:q.getBoundingClientRect(),X={top:`${J?J.bottom+6:66}px`};if(window.innerWidth<=640)X.left="8px",X.right="8px";else{X.left="auto";const le=(I=w.current)==null?void 0:I.getBoundingClientRect();X.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(X)},[]);if(_.useEffect(()=>{if(!m)return;H();const q=()=>H(),J=X=>{var le,Z;const I=X.target;(le=N.current)!=null&&le.contains(I)||(Z=w.current)!=null&&Z.contains(I)||x(!1)};return window.addEventListener("resize",q),window.addEventListener("scroll",q,{passive:!0}),document.addEventListener("click",J),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q),document.removeEventListener("click",J)}},[m,H]),_.useEffect(()=>()=>{var q;return(q=j.current)==null?void 0:q.pause()},[]),r.length===0)return null;const L=r[c]??r[0],Y=(q=c)=>{const J=j.current,X=r[q];!J||!X||(J.getAttribute("src")!==X.audioUrl&&(J.src=X.audioUrl),J.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var q;(q=j.current)==null||q.pause(),d(!1)},Q=q=>{const J=(q%r.length+r.length)%r.length;u(J),p({now:0,total:0}),Y(J)};return a.jsxs(a.Fragment,{children:[a.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[a.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:a.jsx(L0,{})}),a.jsx("span",{id:"w4d-now","aria-live":"polite",children:L.title}),a.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${L.title}`,onClick:()=>f?R():Y(),children:f?a.jsx(B0,{}):a.jsx(H0,{})}),a.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(q=>!q),children:a.jsx(q0,{})})]}),a.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:q=>p({now:q.currentTarget.currentTime,total:q.currentTarget.duration}),onDurationChange:q=>p(J=>({...J,total:q.currentTarget.duration})),onEnded:()=>Q(c+1),onError:()=>d(!1)}),a.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[a.jsxs("div",{className:"w4d-head",children:[a.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),a.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),a.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:a.jsx($0,{})})]}),a.jsx("ol",{children:r.map((q,J)=>a.jsx("li",{children:a.jsxs("button",{type:"button",className:"w4d-item","aria-current":J===c,"data-playing":J===c&&f?"1":"0",onClick:()=>Q(J),children:[a.jsxs("span",{className:"w4d-mark",children:[a.jsx("span",{className:"w4d-disc-sm"}),a.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})]}),a.jsxs("span",{className:"w4d-info",children:[a.jsx("span",{className:"w4d-t",children:q.title}),a.jsx("span",{className:"w4d-sub",children:s.place.name})]}),a.jsx("span",{className:"w4d-time",children:J===c&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},q.songId))}),a.jsx("div",{id:"w4d-lyrics-box",hidden:!L.lyrics,children:(L.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const ml={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},G0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Lp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Bj={PUBLISHED:3};function Mn(s){return s.filter(r=>Lp(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const c of Mn(s))r.set(c.key,c);return r}function da(s,r){const c=Hp(s).get(r);return(c==null?void 0:c.value)??void 0}function Ct(s,r){const c=Hp(s).get(r);if(!(c!=null&&c.value))return;const u=c.type==="number"?X0(c.value):c.value;return c.unit?`${u}${c.unit}`:u}function X0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Q0(s){return s.filter(r=>Lp(r.status)&&r.question&&r.answer).sort((r,c)=>r.sortOrder-c.sortOrder)}function xu(s){return s.map(r=>({...r,facts:Mn(r.facts)})).sort((r,c)=>r.sortOrder-c.sortOrder)}const V0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Z0(s){const r=(s??"").trim();if(!r)return;const c=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return c==null?void 0:c[1]}function K0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function J0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function F0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function I0(s,r){var p,y;const c=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${c(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${c(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const c=V0[s],u=(r??"").trim();if(!c||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:I0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[c]=="string"&&v[c].trim().length>0);let p=0,y=0;for(const v of g){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const P0=1260,ev=60,tv="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const c=Number(r[1]),u=Number(r[2]);if(!(c>23||u>59))return c*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function lv(s){const r=Kh(s.startTime??"")??Kh(tv)??600,c=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??ev),g=u+m;if(g+x>P0){f+=1;continue}c.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:c,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function av(s=new Date){const r=s.getMonth()+1,c=Math.floor((r-3+12)%12/3),u=Zh[c];return r%3===0&&s.getDate()<=15?[Zh[(c+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,c){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*c),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function nv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[ml.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[ml.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[ml.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[ml.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function sv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[c,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=da(s.facts,c))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Ih=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function iv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Ih.map((f,d)=>[f,d])),c=s.links.filter(f=>f.confirmed&&Ih.includes(f.channel)&&!iv(f.url)),u=c.some(f=>f.channel===it.NAVER_BOOKING);return c.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??sv(s)[0]}function bu(s){return Mn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const c=Ct(r,s.key);return c?s.type!=="bool"?c:/여부$/.test(s.label)?c==="true"?"있음":c==="false"?"없음":c:c==="true"?"가능":c==="false"?"불가":c:""}const rv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function cv(s){const r=new Set;return s.filter(c=>{const u=c.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function nl(s){const r=Bp[s.place.category],c=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===ml.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:cv(u.facts.filter(m=>!rv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>c.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:ov(u),prices:fv(u),href:`/${r.path}/${u.slug}`}})}function ov(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const c=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(c)&&c>0?c:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const uv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function fv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?uv.map(([r,c])=>({label:c,value:Ct(s.facts,r)??"문의"})):[]}function dv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function mv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var c;return((c=r.alt)==null?void 0:c.trim())&&!r.unitId})}function hv(s){return Q0(s.faqs)}function Gp(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var c;return((c=s.theme.sections.find(u=>u.id===r))==null?void 0:c.enabled)??!1}function pv(s,r){var u;const c=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(c==null?void 0:c.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function It(s,r){var d;const c=s.theme.sections.find(m=>m.id===r),u=W0(r,c==null?void 0:c.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function rt(s){return Bp[s.place.category]}function He(s,r,c){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||c}function On(s,r){const c=new Map(Mn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>c.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return On(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return On(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return On(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return On(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return On(s,Sv).slice(0,4)}function Dn(s){const r=nl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const c=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>c(f)c.confirmed&&r.includes(c.channel))}const Ke=$p,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const c=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[c&&`기준 ${c}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==ml.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:On(s,zv),links:Ke(s),contacts:Rn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(c=>c.id===r)}function Rn(s){return Ev(s,wv)}function bt(s,r){const c=Cn(s),u=c.endsWith("예약")?c:`${c} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function kv(){var u;const s=W(),r=rt(s),c=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return a.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:a.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[a.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[a.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),a.jsxs("span",{className:"flex min-w-0 flex-col",children:[a.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&a.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:c.map(f=>a.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[a.jsx(Up,{}),s.place.phone&&a.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),a.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),a.jsxs("details",{className:"relative lg:hidden",children:[a.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:a.jsx(Dp,{className:"size-5"})}),a.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:a.jsx("ul",{className:"divide-line divide-y",children:c.map(f=>a.jsx("li",{children:a.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ql({children:s}){var p;const{place:r,narrative:c}=W(),u=r.category===ml.LODGING,[f,d]=_.useState(0),m=(((p=c.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(_.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return a.jsxs("span",{className:"hero-catchphrase",children:[s&&a.jsx("span",{className:"hero-catchphrase-fixed",children:s}),a.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>a.jsxs("span",{children:[v>0&&" ",a.jsx("span",{className:"w4d-w",children:a.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var c;return r.isPrimary&&((c=r.alt)==null?void 0:c.trim())})??s.media.find(r=>{var c;return(c=r.alt)==null?void 0:c.trim()})}function _v(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:c}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=da(c,"check_in_time"),m=da(c,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=da(c,"business_hours")??da(c,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=da(c,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),da(c,"parking")==="true"){const y=da(c,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=W(),{place:r,narrative:c}=s,u=Ha(s),f=Dn(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Dv),[g,p]=_.useState(0),[y,v]=_.useState(!1),j=_.useRef(null),w=_.useCallback(N=>p(A=>(A+N+x.length)%x.length),[x.length]);return _.useEffect(()=>{if(y||x.length<2)return;const N=setInterval(()=>w(1),Ov);return()=>clearInterval(N)},[y,w,x.length]),a.jsxs("section",{id:"top",className:"w-full",children:[a.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const H=N.changedTouches[0].clientX-A;Math.abs(H)>40&&w(H<0?1:-1)},children:[x.map((N,A)=>a.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},N.mediaId)),a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),a.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&a.jsx("p",{className:"label opacity-100",children:m}),a.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(c.tagline??c.heroSubline)&&a.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:a.jsx(ql,{children:c.tagline??c.heroSubline})})]}),x.length>1&&a.jsxs(a.Fragment,{children:[a.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),a.jsx(Wh,{dir:"next",onClick:()=>w(1)}),a.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((N,A)=>a.jsx("li",{children:a.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&a.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:a.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[a.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&a.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[a.jsx("dt",{className:"label",children:"1박 최저가"}),a.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>a.jsxs("div",{className:"px-5 text-center",children:[a.jsx("dt",{className:"label",children:N.label}),a.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),a.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&a.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:r.phone})]}),d.length>0&&a.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:bt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const c=s==="prev"?_n:La;return a.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:a.jsx(c,{className:"size-5"})})}function Uv(){const s=W(),{place:r,narrative:c}=s,u=Ha(s).slice(0,3),f=Dn(s),d=Ke(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return a.jsx("section",{id:"top",className:"border-line w-full border-b",children:a.jsxs("div",{className:"grid lg:grid-cols-2",children:[a.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&a.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),a.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[a.jsxs("div",{children:[g&&a.jsx("p",{className:"label",children:g}),a.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),a.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:a.jsx(ql,{children:c.tagline??c.heroSubline??c.summary})})]}),a.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&a.jsxs("p",{className:"flex items-baseline gap-2",children:[a.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),a.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&a.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted",children:p.label}),a.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted",children:m.label}),a.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),a.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&a.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:bt(d[0])}),r.phone&&a.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:r.phone})]})]})]})]})]})})}const Lv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial","stay-paper":"paper","restaurant-paper":"paper","cafe-paper":"paper"};function Xp(s){return Lv[s??""]??"default"}function Sr(){return Xp(W().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Bv(s){const r=s*xr,c=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${c(xr)} { opacity: 1; } + ${c(xr+nu)} { opacity: 0; } + ${c(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=W(),{place:r,narrative:c}=s,u=rt(s),f=Ke(s)[0],d=c.tagline??c.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Cn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return a.jsxs("section",{id:"top",className:"w-full",children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),a.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>a.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return a.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[a.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),c.heroHeadline&&a.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:c.heroHeadline}),u&&a.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[a.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),a.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&a.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&a.jsxs("div",{children:[a.jsx("dt",{className:"text-muted",children:"최저가"}),a.jsx("dd",{children:f})]}),x.map(p=>a.jsxs("div",{children:[a.jsx("dt",{className:"text-muted",children:p.label}),a.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&a.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>a.jsx("li",{children:a.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:bt(p)})},p.url))})]})}function Yv(){const s=W(),r=yu(s),c=Nr(s),u=c&&r.some(f=>f.mediaId===c.mediaId)?[c,...r.filter(f=>f.mediaId!==c.mediaId)]:r;return u.length===0?null:a.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:a.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>a.jsx("figure",{className:"mb-2 break-inside-avoid",children:a.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=W(),{place:r,narrative:c}=s,u=Ha(s),f=Dn(s),d=Ke(s),m=c.tagline??c.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return a.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[a.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[a.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[a.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),a.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),a.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[a.jsxs("div",{className:"order-2 lg:order-1",children:[x&&a.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),a.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&a.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:a.jsx(ql,{children:m})}),d.length>0&&a.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:bt(d[0])})]}),a.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&a.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:a.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&a.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>a.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:a.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&a.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:a.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&a.jsxs("div",{children:[a.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),a.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>a.jsxs("div",{children:[a.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),a.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Qp(){var f;const s=W(),r=rt(s),c=new Set,u=[];for(const d of Gp(s)){const m=Qv[d.id];if(!m||c.has(m)||m==="units"&&s.units.length===0)continue;c.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return c.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:c,aside:u}){var d;const f=(d=Qp().find(m=>m.anchor===s))==null?void 0:d.no;return a.jsxs("header",{className:"mb-7 sm:mb-10",children:[a.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),a.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[a.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&a.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),a.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),c&&a.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:c})]}),u&&a.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=W(),{place:r,narrative:c}=s,u=Nr(s),f=rt(s),d=nl(s),m=Ha(s),x=Dn(s),g=Ke(s)[0],p=Rn(s)[0],y=c.tagline??c.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return a.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:a.jsxs("div",{className:"grid grid-cols-12",children:[u&&a.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:a.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),a.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:a.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),a.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&a.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:a.jsx(ql,{children:y})}),j.length>0&&a.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(g||r.phone||p)&&a.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&a.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:bt(g)}),r.phone&&a.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&a.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&a.jsx("dl",{className:"mt-1",children:m.map(w=>a.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:w.label}),a.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}const Kv=6e3,Jv=5;function Fv(){const s=W(),{place:r,narrative:c}=s,u=r.addressLocality??r.addressRegion,f=[...s.media].filter(v=>{var j;return(j=v.alt)==null?void 0:j.trim()}).sort((v,j)=>Number(j.isPrimary)-Number(v.isPrimary)).slice(0,Jv),[d,m]=_.useState(0),[x,g]=_.useState(!1),p=_.useRef(null),y=_.useCallback(v=>m(j=>(j+v+f.length)%f.length),[f.length]);return _.useEffect(()=>{if(x||f.length<2)return;const v=setInterval(()=>y(1),Kv);return()=>clearInterval(v)},[x,y,f.length]),a.jsx("section",{id:"top",className:"w-full",children:a.jsxs("div",{className:"relative w-full overflow-hidden",style:{height:"clamp(24rem, 74vh, 40rem)"},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onFocusCapture:()=>g(!0),onBlurCapture:()=>g(!1),onTouchStart:v=>{p.current=v.touches[0].clientX},onTouchEnd:v=>{const j=p.current;if(p.current=null,j===null)return;const w=v.changedTouches[0].clientX-j;Math.abs(w)>40&&y(w<0?1:-1)},children:[f.map((v,j)=>a.jsx("img",{src:v.url,alt:v.alt,fetchPriority:j===0?"high":"low",loading:j===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:j===d?1:0}},v.mediaId)),a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 42%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 10%, transparent) 40%, transparent 70%)"}}),a.jsxs("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex flex-col items-start gap-2 px-6 pb-10 sm:px-10 sm:pb-14",children:[u&&a.jsx("p",{className:"text-[length:var(--fs-xs)] uppercase opacity-100",style:{letterSpacing:"0.28em",color:"var(--tpl-bg, #fff)"},children:u}),a.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 400)",letterSpacing:"var(--tpl-heading-tracking, 0.03em)",lineHeight:1.3,color:"var(--tpl-bg, #fff)"},children:r.name}),(c.tagline??c.heroSubline)&&a.jsx("p",{className:"measure text-[length:var(--fs-lead)] leading-relaxed opacity-100",style:{color:"var(--tpl-bg, #fff)"},children:a.jsx(ql,{children:c.tagline??c.heroSubline})})]}),f.length>1&&a.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2 sm:hidden",children:f.map((v,j)=>a.jsx("li",{children:a.jsx("button",{type:"button",onClick:()=>m(j),"aria-label":`${j+1}번째 사진`,"aria-current":j===d,className:`h-1.5 rounded-full transition-all ${j===d?"w-7":"w-1.5"}`,style:{backgroundColor:"var(--tpl-bg, #fff)",opacity:j===d?1:.5}})},v.mediaId))})]})})}function Iv(){var g;const s=W(),r=Sr();if(r==="reservation")return a.jsx($v,{});if(r==="oasi")return a.jsx(Gv,{});if(r==="studio")return a.jsx(Yv,{});if(r==="pastel")return a.jsx(Xv,{});if(r==="editorial")return a.jsx(Zv,{});if(r==="paper")return a.jsx(Fv,{});const c=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(c==="hero.slideshow")return a.jsx(Rv,{});if(c==="hero.split")return a.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=rt(s);Ke(s);const x=u.addressLocality??u.addressRegion;return a.jsx("section",{id:"top",className:"w-full",children:a.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&a.jsxs("div",{className:"absolute inset-0 z-0",children:[a.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),a.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),a.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&a.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[a.jsx(vr,{className:"size-3.5"}),a.jsx("span",{children:x})]}),a.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&a.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:a.jsx(ql,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&a.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[a.jsxs("span",{children:[m.label," 보기"]}),a.jsx(mu,{className:"size-4"})]})]})]})})}function Vp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Ba(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Wv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Pv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function ey(s,r,c){return r==null||c==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${c}`}function ty(s,r){const c=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${c(s)}/${c(r)}/-/car`}function Zp(s,r,c){return r==null||c==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${c},${r},${encodeURIComponent(Su(s))}/-/transit`}function ly(s,r,c=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=c*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ay(s,r,c){if(r==null||c==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${c}&goaly=${r}&rGoName=${u}&rGoX=${c}&rGoY=${r}`}function wu({id:s,title:r,lead:c,aside:u}){return a.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[a.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),a.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),c&&a.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:c}),u&&a.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:c,aside:u}){return a.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),c&&a.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:c})]}),u&&a.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:c,aside:u}){return a.jsx("header",{className:"mb-7 sm:mb-10",children:a.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),c&&a.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:c})]}),u&&a.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:c,aside:u}){return a.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[a.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),a.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),c&&a.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-85",children:c}),u&&a.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}function Kp({title:s,lead:r,aside:c}){return a.jsxs("header",{className:"mb-6 sm:mb-8",children:[a.jsx("div",{"aria-hidden":!0,className:"border-line mb-4 w-full border-t"}),a.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("h2",{className:"serif",style:{fontSize:"clamp(1.15rem, 2.4vw, 1.5rem)",fontWeight:"var(--tpl-heading-weight, 400)",letterSpacing:"var(--tpl-heading-tracking, 0.03em)"},children:s}),r&&a.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)] leading-relaxed",children:r})]}),c&&a.jsx("div",{className:"shrink-0",children:c})]})]})}const ny={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function ct({id:s,title:r,lead:c,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:p==="paper"?Kp:sy;return a.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ny[u],paddingBlock:"var(--section-space)"},children:a.jsxs("div",{className:x?"w-full":"shell",children:[!g&&a.jsx("div",{className:x?"shell":void 0,children:a.jsx(y,{id:s,title:r,lead:c,aside:f})}),m,d&&a.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function sy({id:s,title:r,lead:c,aside:u}){return a.jsx("header",{className:"mb-6 sm:mb-8",children:a.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[a.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),a.jsx("span",{className:"min-w-0",children:r})]}),c&&a.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:c})]}),u&&a.jsx("div",{className:"shrink-0",children:u})]})})}function iy(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return iy(s)||Array.isArray(s)}function ry(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const c=Object.keys(s),u=Object.keys(r);if(c.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:c.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Au(x,g)})}function lp(s){return s.concat().sort((r,c)=>r.name>c.name?1:-1).map(r=>r.options)}function cy(s,r){if(s.length!==r.length)return!1;const c=lp(s),u=lp(r);return c.every((f,d)=>{const m=u[d];return Au(f,m)})}function ku(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function qs(s,r){return Ye(s-r)}function oy(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const c=qs(Ye(s),Ye(r));return Ye(c/s)}function uy(s){return Math.round(s*100)/100}function Xs(s){return Qs(s).map(Number)}function al(s){return s[Ks(s)]}function Ks(s){return Math.max(0,s.length-1)}function _u(s,r){return r===Ks(s)}function np(s,r=0){return Array.from(Array(s),(c,u)=>r+u)}function Qs(s){return Object.keys(s)}function Jp(s,r){return[s,r].reduce((c,u)=>(Qs(u).forEach(f=>{const d=c[f],m=u[f],x=ap(d)&&ap(m);c[f]=x?Jp(d,m):m}),c),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function fy(s,r){const c={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?c[s](g):s(r,g,p)}return{measure:m}}function Vs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function c(){s=s.filter(f=>f())}const u={add:r,clear:c};return u}function dy(s,r,c,u){const f=Vs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(H){if(!g)return;m||(m=H,c(),c());const L=H-m;for(m=H,x+=L;x>=d;)c(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function j(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function N(){m=null,x=0}return{init:p,destroy:y,start:j,stop:w,update:c,render:u}}function my(s,r){const c=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&c?-1:1,x=y(),g=v();function p(N){const{height:A,width:H}=N;return u?A:H}function y(){return u?"top":c?"right":"left"}function v(){return u?"bottom":c?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:j}}function Ua(s=0,r=0){const c=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return c?p-c*Math.ceil((p-r)/c):p}return{length:c,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Fp(s,r,c){const{constrain:u}=Ua(0,s),f=s+1;let d=m(r);function m(j){return c?Ye((f+j)%f):u(j)}function x(){return d}function g(j){return d=m(j),v}function p(j){return y().set(x()+j)}function y(){return Fp(s,x(),c)}const v={get:x,set:g,add:p,clone:y};return v}function hy(s,r,c,u,f,d,m,x,g,p,y,v,j,w,N,A,H,L,Y){const{cross:R,direction:Q}=s,q=["INPUT","SELECT","TEXTAREA"],J={passive:!1},X=Vs(),I=Vs(),le=Ua(50,225).constrain(w.measure(20)),Z={mouse:300,touch:400},ne={mouse:500,touch:600},ye=N?43:25;let Ge=!1,Xe=0,re=0,O=!1,V=!1,ae=!1,he=!1;function je(te){if(!Y)return;function Ae(tt){(wr(Y)||Y(te,tt))&&fe(tt)}const Oe=r;X.add(Oe,"dragstart",tt=>tt.preventDefault(),J).add(Oe,"touchmove",()=>{},J).add(Oe,"touchend",()=>{}).add(Oe,"touchstart",Ae).add(Oe,"mousedown",Ae).add(Oe,"touchcancel",Ee).add(Oe,"contextmenu",Ee).add(Oe,"click",ze,!0)}function E(){X.clear(),I.clear()}function $(){const te=he?c:r;I.add(te,"touchmove",oe,J).add(te,"touchend",Ee).add(te,"mousemove",oe,J).add(te,"mouseup",Ee)}function K(te){const Ae=te.nodeName||"";return q.includes(Ae)}function F(){return(N?ne:Z)[he?"mouse":"touch"]}function ce(te,Ae){const Oe=v.add(Cu(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ye(te)=2,!(Ae&&te.button!==0)&&(K(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),$(),Xe=d.readPoint(te),re=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return Ee(te);const Oe=d.readPoint(te),tt=d.readPoint(te,R),Nt=qs(Oe,Xe),Wt=qs(tt,re);if(!V&&!he&&(!te.cancelable||(V=Nt>Wt,!V)))return Ee(te);const sl=d.pointerMove(te);Nt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Q(sl)),te.preventDefault()}function Ee(te){const Oe=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),Nt=ce(Q(tt),Oe),Wt=oy(tt,Nt),sl=ye-10*Wt,Bt=L+Wt/50;V=!1,O=!1,I.clear(),p.useDuration(sl).useFriction(Bt),g.distance(Nt,!N),he=!1,j.emit("pointerUp")}function ze(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:je,destroy:E,pointerDown:at}}function py(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function x(v){return u=v,f=v,m(v)}function g(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ye(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function xy(){function s(c){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=c;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function gy(s){function r(u){return s*(u/100)}return{measure:r}}function by(s,r,c,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function j(H){return f.measureSize(m.measure(H))}function w(H){if(!d)return;p=j(s),y=u.map(j);function L(Y){for(const R of Y){if(v)return;const Q=R.target===s,q=u.indexOf(R.target),J=Q?p:y[q],X=j(Q?s:u[q]);if(Ye(X-J)>=.5){H.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(wr(d)||d(H,Y))&&L(Y)}),c.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function N(){v=!0,g&&g.disconnect()}return{init:w,destroy:N}}function vy(s,r,c,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function j(){const J=u.get()-s.get(),X=!g;let I=0;return X?(m=0,c.set(u),s.set(u),I=J):(c.set(s),m+=J/g,m*=p,y+=m,s.add(m),I=y-v),x=Cu(I),v=y,q}function w(){const J=u.get()-r.get();return Ye(J)<.001}function N(){return g}function A(){return x}function H(){return m}function L(){return R(f)}function Y(){return Q(d)}function R(J){return g=J,q}function Q(J){return p=J,q}const q={direction:A,duration:N,velocity:H,seek:j,settled:w,useBaseFriction:Y,useBaseDuration:L,useFriction:Q,useDuration:R};return q}function yy(s,r,c,u,f){const d=f.measure(10),m=f.measure(50),x=Ua(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(c.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ye(s[N]-r.get()),H=c.get()-r.get(),L=x.constrain(A/m);c.subtract(H*L),!w&&Ye(H){const{min:H,max:L}=d,Y=d.constrain(N),R=!A,Q=_u(c,A);return R?L:Q||p(H,Y)?H:p(L,Y)?L:Y}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=x;return m.slice(N,A)}return{snapsContained:g,scrollContainLimit:x}}function Ny(s,r,c){const u=r[0],f=c?u-s:al(r);return{limit:Ua(f,u)}}function Sy(s,r,c,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ua(d,m);function p(j){return j===1?g(c.get()):j===-1?x(c.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function wy(s){const{max:r,length:c}=s;function u(d){const m=d-r;return c?m/-c:0}return{get:u}}function Ey(s,r,c,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=j(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ye)}function j(){return u.map(A=>c[d]-A[d]).map(A=>-Ye(A))}function w(){return x(p).map(A=>A[0]).map((A,H)=>A+g[H])}return{snaps:p,snapsAligned:y}}function zy(s,r,c,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return c.length===1?[d]:w?j:j.slice(x,g).map((N,A,H)=>{const L=!A,Y=_u(H,A);if(L){const R=al(H[0])+1;return np(R)}if(Y){const R=Ks(d)-al(H)[0]+1;return np(R,al(H)[0])}return N})}return{slideRegistry:p}}function Ty(s,r,c,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(N){return N.concat().sort((A,H)=>Ye(A)-Ye(H))[0]}function p(N){const A=s?m(N):x(N),H=r.map((Y,R)=>({diff:y(Y-A,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:L}=H[0];return{index:L,distance:A}}function y(N,A){const H=[N,N+c,N-c];if(!s)return N;if(!A)return g(H);const L=H.filter(Y=>Cu(Y)===A);return L.length?g(L):al(H)-c}function v(N,A){const H=r[N]-f.get(),L=y(H,A);return{index:N,distance:L}}function j(N,A){const H=f.get()+N,{index:L,distance:Y}=p(H),R=!s&&d(H);if(!A||R)return{index:L,distance:N};const Q=r[L]-Y,q=N+y(Q,0);return{index:L,distance:q}}return{byDistance:j,byIndex:v,shortcut:y}}function Ay(s,r,c,u,f,d,m){function x(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(c.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,j){const w=f.byDistance(v,j);x(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);x(N)}return{distance:g,index:p}}function ky(s,r,c,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=c.findIndex(R=>R.includes(A));ku(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,H)=>{d.add(A,"focus",L=>{(wr(x)||x(w,L))&&N(H)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Ls(s){let r=s;function c(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return ku(g)?g:g.get()}return{get:c,set:u,add:f,subtract:d}}function Ip(s,r){const c=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function x(j){return`translate3d(0px,${j}px,0px)`}function g(j){if(d)return;const w=uy(s.direction(j));w!==f&&(u.transform=c(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Cy(s,r,c,u,f,d,m,x,g){const y=Xs(f),v=Xs(f).reverse(),j=L().concat(Y());function w(X,I){return X.reduce((le,Z)=>le-f[Z],I)}function N(X,I){return X.reduce((le,Z)=>w(le,I)>0?le.concat([Z]):le,[])}function A(X){return d.map((I,le)=>({start:I-u[le]+.5+X,end:I+r-.5+X}))}function H(X,I,le){const Z=A(I);return X.map(ne=>{const ye=le?0:-c,Ge=le?c:0,Xe=le?"end":"start",re=Z[ne][Xe];return{index:ne,loopPoint:re,slideLocation:Ls(-1),translate:Ip(s,g[ne]),target:()=>x.get()>re?ye:Ge}})}function L(){const X=m[0],I=N(v,X);return H(I,c,!1)}function Y(){const X=r-m[0]-1,I=N(y,X);return H(I,-c,!0)}function R(){return j.every(({index:X})=>{const I=y.filter(le=>le!==X);return w(I,r)<=.1})}function Q(){j.forEach(X=>{const{target:I,translate:le,slideLocation:Z}=X,ne=I();ne!==Z.get()&&(le.to(ne),Z.set(ne))})}function q(){j.forEach(X=>X.translate.clear())}return{canLoop:R,clear:q,loop:Q,loopPoints:j}}function _y(s,r,c){let u,f=!1;function d(g){if(!c)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(c)||c(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function My(s,r,c,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(N=>{g||(N.forEach(A=>{const H=r.indexOf(A.target);f[H]=A}),d=null,m=null,c.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>x.observe(N))}function y(){x&&x.disconnect(),g=!0}function v(N){return Qs(f).reduce((A,H)=>{const L=parseInt(H),{isIntersecting:Y}=f[L];return(N&&Y||!N&&!Y)&&A.push(L),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function Oy(s,r,c,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=c[0]&&f,y=N(),v=A(),j=c.map(m),w=H();function N(){if(!p)return 0;const Y=c[0];return Ye(r[x]-Y[x])}function A(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function H(){return c.map((Y,R,Q)=>{const q=!R,J=_u(Q,R);return q?j[R]+y:J?j[R]+v:Q[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Dy(s,r,c,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,j=ku(c);function w(L,Y){return Xs(L).filter(R=>R%Y===0).map(R=>L.slice(R,R+Y))}function N(L){return L.length?Xs(L).reduce((Y,R,Q)=>{const q=al(Y)||0,J=q===0,X=R===Ks(L),I=f[p]-d[q][p],le=f[p]-d[R][y],Z=!u&&J?v(m):0,ne=!u&&X?v(x):0,ye=Ye(le-ne-(I+Z));return Q&&ye>r+g&&Y.push(R),X&&Y.push(L.length),Y},[]).map((Y,R,Q)=>{const q=Math.max(Q[R-1]||0);return L.slice(q,Y)}):[]}function A(L){return j?w(L,c):N(L)}return{groupSlides:A}}function Ry(s,r,c,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:H,skipSnaps:L,containScroll:Y,watchResize:R,watchSlides:Q,watchDrag:q,watchFocus:J}=d,X=2,I=xy(),le=I.measure(r),Z=c.map(I.measure),ne=my(g,p),ye=ne.measureSize(le),Ge=gy(ye),Xe=fy(x,ye),re=!v&&!!Y,O=v||!!Y,{slideSizes:V,slideSizesWithGaps:ae,startGap:he,endGap:je}=Oy(ne,le,Z,c,O,f),E=Dy(ne,ye,H,v,le,Z,he,je,X),{snaps:$,snapsAligned:K}=Ey(ne,Xe,le,Z,E),F=-al($)+al(ae),{snapsContained:ce,scrollContainLimit:fe}=jy(ye,F,K,Y,X),oe=re?ce:K,{limit:Ee}=Ny(F,oe,v),ze=Fp(Ks(oe),y,v),at=ze.clone(),Me=Xs(c),te=({dragHandler:bl,scrollBody:Gn,scrollBounds:Yn,options:{loop:il}})=>{il||Yn.constrain(bl.pointerDown()),Gn.seek()},Ae=({scrollBody:bl,translate:Gn,location:Yn,offsetLocation:il,previousLocation:vt,scrollLooper:rl,slideLooper:yt,dragHandler:zr,animation:Tr,eventHandler:Is,scrollBounds:Ga,options:{loop:ga}},ba)=>{const cl=bl.settled(),Ya=!Ga.shouldConstrain(),$l=ga?cl:cl&&Ya,Ws=$l&&!zr.pointerDown();Ws&&Tr.stop();const Ps=Yn.get()*ba+vt.get()*(1-ba);il.set(Ps),ga&&(rl.loop(bl.direction()),yt.loop()),Gn.to(il.get()),Ws&&Is.emit("settle"),$l||Is.emit("scroll")},Oe=dy(u,f,()=>te($n),bl=>Ae($n,bl)),tt=.68,Nt=oe[ze.get()],Wt=Ls(Nt),sl=Ls(Nt),Bt=Ls(Nt),Pt=Ls(Nt),gl=vy(Wt,Bt,sl,Pt,j,tt),Hn=Ty(v,oe,F,Ee,Pt),Bn=Ay(Oe,ze,at,gl,Hn,Pt,m),pt=wy(Ee),Js=Vs(),Fs=My(r,c,m,A),{slideRegistry:qn}=zy(re,Y,oe,fe,E,Me),$a=ky(s,c,qn,Bn,gl,Js,m,J),$n={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:Z,animation:Oe,axis:ne,dragHandler:hy(ne,s,u,f,Pt,py(ne,f),Wt,Oe,Bn,gl,Hn,ze,m,Ge,w,N,L,tt,q),eventStore:Js,percentOfView:Ge,index:ze,indexPrevious:at,limit:Ee,location:Wt,offsetLocation:Bt,previousLocation:sl,options:d,resizeHandler:by(r,m,f,c,ne,R,I),scrollBody:gl,scrollBounds:yy(Ee,Bt,Pt,gl,Ge),scrollLooper:Sy(F,Ee,Bt,[Wt,Bt,sl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Bn,slideLooper:Cy(ne,ye,F,V,ae,$,oe,Bt,c),slideFocus:$a,slidesHandler:_y(r,m,Q),slidesInView:Fs,slideIndexes:Me,slideRegistry:qn,slidesToScroll:E,target:Pt,translate:Ip(ne,r)};return $n}function Uy(){let s={},r;function c(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:c,emit:f,off:m,on:d,clear:x};return g}const Ly={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Hy(s){function r(d,m){return Jp(d,m||{})}function c(d){const m=d.breakpoints||{},x=Qs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Qs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:c,optionsMediaQueries:u}}function By(s){let r=[];function c(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:c,destroy:u}}function br(s,r,c){const u=s.ownerDocument,f=u.defaultView,d=Hy(f),m=By(d),x=Vs(),g=Uy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=g,A=ne;let H=!1,L,Y=p(Ly,br.globalOptions),R=p(Y),Q=[],q,J,X;function I(){const{container:Me,slides:te}=R;J=(su(Me)?s.querySelector(Me):Me)||s.children[0];const Oe=su(te)?J.querySelectorAll(te):te;X=[].slice.call(Oe||J.children)}function le(Me){const te=Ry(s,J,X,u,f,Me,g);if(Me.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Me,{loop:!1});return le(Ae)}return te}function Z(Me,te){H||(Y=p(Y,Me),R=y(Y),Q=te||Q,I(),L=le(R),v([Y,...Q.map(({options:Ae})=>Ae)]).forEach(Ae=>x.add(Ae,"change",ne)),R.active&&(L.translate.to(L.location.get()),L.animation.init(),L.slidesInView.init(),L.slideFocus.init(at),L.eventHandler.init(at),L.resizeHandler.init(at),L.slidesHandler.init(at),L.options.loop&&L.slideLooper.loop(),J.offsetParent&&X.length&&L.dragHandler.init(at),q=m.init(at,Q)))}function ne(Me,te){const Ae=E();ye(),Z(p({startIndex:Ae},Me),te),g.emit("reInit")}function ye(){L.dragHandler.destroy(),L.eventStore.clear(),L.translate.clear(),L.slideLooper.clear(),L.resizeHandler.destroy(),L.slidesHandler.destroy(),L.slidesInView.destroy(),L.animation.destroy(),m.destroy(),x.clear()}function Ge(){H||(H=!0,x.clear(),ye(),g.emit("destroy"),g.clear())}function Xe(Me,te,Ae){!R.active||H||(L.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),L.scrollTo.index(Me,Ae||0))}function re(Me){const te=L.index.add(1).get();Xe(te,Me,-1)}function O(Me){const te=L.index.add(-1).get();Xe(te,Me,1)}function V(){return L.index.add(1).get()!==E()}function ae(){return L.index.add(-1).get()!==E()}function he(){return L.scrollSnapList}function je(){return L.scrollProgress.get(L.offsetLocation.get())}function E(){return L.index.get()}function $(){return L.indexPrevious.get()}function K(){return L.slidesInView.get()}function F(){return L.slidesInView.get(!1)}function ce(){return q}function fe(){return L}function oe(){return s}function Ee(){return J}function ze(){return X}const at={canScrollNext:V,canScrollPrev:ae,containerNode:Ee,internalEngine:fe,destroy:Ge,off:w,on:j,emit:N,plugins:ce,previousScrollSnap:$,reInit:A,rootNode:oe,scrollNext:re,scrollPrev:O,scrollProgress:je,scrollSnapList:he,scrollTo:Xe,selectedScrollSnap:E,slideNodes:ze,slidesInView:K,slidesNotInView:F};return Z(r,c),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const c=_.useRef(s),u=_.useRef(r),[f,d]=_.useState(),[m,x]=_.useState(),g=_.useCallback(()=>{f&&f.reInit(c.current,u.current)},[f]);return _.useEffect(()=>{Au(c.current,s)||(c.current=s,g())},[s,g]),_.useEffect(()=>{cy(u.current,r)||(u.current=r,g())},[r,g]),_.useEffect(()=>{if(ry()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,c.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Wp=4e3;function Pp({box:s,interval:r,advance:c}){const u=_.useRef(c);u.current=c,_.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let j=!1;const w=A=>{const H=A.target;!(H instanceof Element)||!H.matches(":focus-visible")||j||(j=!0,x())},N=()=>{j&&(j=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function qy(s,r=.85){if(!s)return!1;const c=s.scrollWidth-s.clientWidth;if(c<=8||s.scrollLeft>=c-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const ex=_.createContext(null);function xa({label:s,children:r,align:c="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Wp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[j,w]=Mu({align:c,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=_.useState([]),[H,L]=_.useState(0),[Y,R]=_.useState(!1),[Q,q]=_.useState(!1),J=_.useRef(null),X=_.useId();_.useEffect(()=>{var V;if(!w)return;const re=()=>{L(w.selectedScrollSnap()),R(w.canScrollPrev()),q(w.canScrollNext())},O=()=>{A(w.scrollSnapList()),re()};return O(),w.on("select",re),w.on("reInit",O),(V=J.current)==null||V.setAttribute("data-slider","on"),()=>{w.off("select",re),w.off("reInit",O)}},[w]),_.useEffect(()=>{if(!w)return;const re=J.current,O=()=>re==null?void 0:re.setAttribute("data-dragging","true"),V=()=>re==null?void 0:re.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",V),()=>{w.off("pointerDown",O),w.off("pointerUp",V)}},[w]),Pp({box:J,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const I=_.useCallback(re=>w==null?void 0:w.scrollTo(re),[w]),le=_.useRef(g);le.current=g;const Z=_.useRef(p);Z.current=p,_.useEffect(()=>{var O;if(!w)return;const re=()=>{var V;return(V=le.current)==null?void 0:V.call(le,w.selectedScrollSnap())};return re(),w.on("select",re),w.on("reInit",re),(O=Z.current)==null||O.call(Z,{scrollTo:V=>w.scrollTo(V)}),()=>{w.off("select",re),w.off("reInit",re)}},[w]);const ne=_.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),ye=_.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),Ge=N.length>1,Xe=f&&Ge&&N.length<=12;return a.jsxs("div",{className:y,children:[d==="header"&&Ge&&a.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[a.jsx(sp,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),a.jsx(sp,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{ref:re=>{J.current=re,j(re)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:re=>{re.key==="ArrowLeft"&&(re.preventDefault(),ne()),re.key==="ArrowRight"&&(re.preventDefault(),ye())},children:a.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:X,children:a.jsx(ex.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&Ge&&a.jsxs(a.Fragment,{children:[a.jsx(ip,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),a.jsx(ip,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]})]}),Ge&&a.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&a.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((re,O)=>a.jsx("li",{children:a.jsx("button",{type:"button",onClick:()=>I(O),"aria-label":`${O+1}번째로`,"aria-current":O===H,"aria-controls":X,className:`h-1.5 rounded-full transition-all ${O===H?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),a.jsxs("span",{className:"text-current/90 text-[length:var(--fs-xs)] tabular-nums",children:[H+1," / ",N.length]})]})]})}function Un({basis:s,children:r}){const c=_.useContext(ex);return a.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:c!=null?{marginInlineEnd:`${c}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:c,label:u}){const f=s==="prev"?_n:La;return a.jsx("button",{type:"button",onClick:r,disabled:c,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:a.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:c,label:u}){const f=s==="prev"?_n:La;return a.jsx("button",{type:"button",onClick:r,disabled:c,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:a.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:c="div"}){return a.jsx(c,{className:`panel ${r}`,children:s})}function Du({children:s}){return a.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function tx({label:s,value:r,note:c}){return a.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[a.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),a.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,c&&a.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:c})]})]})}function rp({href:s,children:r,variant:c="solid",external:u,icon:f}){const d=c==="solid";return a.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,a.jsx("span",{children:r}),u&&a.jsx(Hl,{className:"size-4 shrink-0"})]})}function lx({children:s,initial:r=3,label:c}){const[u,f]=_.useState(!1),d=Math.max(0,s.length-r);return a.jsxs(a.Fragment,{children:[s.map((m,x)=>a.jsx("div",{style:{display:u||x0&&a.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:c?c(d):`${d}개 더 보기`})]})}function Ru(s){_.useEffect(()=>{if(!s)return;const r=window.scrollY,c=document.body,u=c.style.position,f=c.style.top,d=c.style.width,m=c.style.overflow;return c.style.position="fixed",c.style.top=`-${r}px`,c.style.width="100%",c.style.overflow="hidden",()=>{c.style.position=u,c.style.top=f,c.style.width=d,c.style.overflow=m;const x=document.documentElement,g=x.style.scrollBehavior;x.style.scrollBehavior="auto",window.scrollTo(0,r),x.style.scrollBehavior=g}},[s])}function ha({open:s,onClose:r,label:c,title:u,children:f,wide:d}){const m=_.useRef(r);return m.current=r,Ru(s),_.useEffect(()=>{if(!s)return;const x=g=>{g.key==="Escape"&&m.current()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[s]),s?a.jsxs("div",{className:"fixed inset-0 z-[60]",children:[a.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),a.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":c,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[a.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&a.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),a.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:a.jsx(yr,{className:"size-5"})})]}),a.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function $y(){const s=W(),{narrative:r,place:c}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${c.name} 소개`;return a.jsx(ct,{id:"about",bare:!0,title:m,children:a.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&a.jsxs("figure",{className:"lg:col-span-7",children:[a.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:a.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&a.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),a.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[a.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[a.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),a.jsx("span",{className:"min-w-0",children:m})]}),a.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>a.jsx("p",{children:x},g))})]})]})})}const Gy={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function Yy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function ax(s){const[,r,c]=Ba(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:c,weekday:u}}function cp(){const s=W(),r=s.posts??[],[c,u]=_.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===c)??null,d=f?ax(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return a.jsxs(ct,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[a.jsx(xa,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>a.jsx(Un,{basis:"basis-[225px]",children:a.jsx(Xy,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),a.jsx(ha,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&a.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function Xy({post:s,onOpen:r}){const{month:c,day:u,weekday:f}=ax(s.publishedAt),d=Yy(c),m=Gy[d],x=`${c}월 ${u}일 · ${f}`;return a.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[a.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),a.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Qy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Qy.has(s.value.trim()),Vy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Zy(s){const r=s.find(u=>u.key==="check_in_time"),c=s.find(u=>u.key==="check_out_time");return!r||!c?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${c.value}`}:u).filter(u=>u.key!=="check_out_time")}function Ky(){var j,w;const s=W(),r=bu(s),c=Mn(s.facts).find(N=>N.key==="intro"),u=((j=c==null?void 0:c.summary)==null?void 0:j.trim())||((w=c==null?void 0:c.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,H,L;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(H=N.stayGuide)==null?void 0:H.service,(L=N.stayGuide)==null?void 0:L.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=Zy([...r]),x=new Set(r.map(N=>N.key));for(const N of d)x.has(N.key)||(m.push(N),x.add(N.key));const g=N=>Ko(N)?!1:Vy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(N=>!g(N)&&N.key!=="intro");return a.jsx(ct,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:a.jsxs("div",{className:"space-y-8",children:[u&&a.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&a.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&a.jsx(op,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:a.jsx(Iy,{rows:v.filter(Ko)})}),p.map(N=>a.jsx(Wy,{text:N},N.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:c,children:u}){return a.jsxs("section",{children:[a.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[c&&a.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),a.jsx("span",{children:s})]}),u,r.length>0&&a.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return a.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[a.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),a.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&a.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Jy="#16a34a",Fy="#e04b25";function Iy({rows:s}){if(s.length===0)return null;const r=[...s].sort((c,u)=>Number(Jo.has(u.value))-Number(Jo.has(c.value)));return a.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(c=>{const u=Jo.has(c.value),f=u?Jy:Fy;return a.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?a.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):a.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),a.jsxs("span",{className:"min-w-0",children:[a.jsx("span",{className:"font-semibold",children:c.label})," ",c.value]})]},c.key??c.label)})})}function Wy({text:s}){return s.trim()?a.jsxs("details",{className:"panel group overflow-hidden",children:[a.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[a.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),a.jsx("span",{className:"flex-1",children:"예약 공지"}),a.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),a.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Py="/v1/site/booking-request";function e1({stay:s,guests:r}){const c=W(),u=_.useRef(Date.now()),[f,d]=_.useState(!1),[m,x]=_.useState(null);_.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Py,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:c.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?a.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[a.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),a.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):a.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),a.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?a.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):a.jsxs(a.Fragment,{children:[a.jsx(Us,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),a.jsx(Us,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),a.jsx(Us,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),a.jsx(Us,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),a.jsx(Us,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),a.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),a.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),a.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[a.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),a.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&a.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),a.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),a.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Us({id:s,label:r,name:c,placeholder:u,type:f="text",required:d,hint:m}){return a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&a.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),a.jsx("input",{id:s,name:c,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&a.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function t1(s,r,c){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(c),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=fp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:pc+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Io(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function a1(s){return xu(s.units).map(r=>{var u;const c=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:c("weekend_price"),maxCapacity:c("max_capacity")}})}function Er(){var le;const s=W(),r=_.useMemo(()=>a1(s),[s]),c=_.useMemo(()=>{var Z;return((Z=Mn(s.facts).find(ne=>ne.key==="check_in_time"))==null?void 0:Z.value)??void 0},[s]),u=_.useMemo(()=>l1(c),[c]),[f,d]=_.useState(null),[m,x]=_.useState(0);_.useEffect(()=>d(new Date),[]);const g=_.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=_.useMemo(()=>f&&g?t1(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=_.useState(null),[j,w]=_.useState(null),[N,A]=_.useState(((le=r[0])==null?void 0:le.unitId)??null),[H,L]=_.useState(2),[Y,R]=_.useState(!1),Q=p.find(Z=>Z!==null&&Z.iso===y)??null,q=r.find(Z=>Z.unitId===N)??null,J=(q==null?void 0:q.maxCapacity)??8,X=Q&&q?Q.isWeekend?q.weekendPrice??q.weekdayPrice:q.weekdayPrice:void 0,I=!!(y&&q&&(u.length===0||j));return _.useEffect(()=>{L(Z=>Math.min(Z,(q==null?void 0:q.maxCapacity)??8))},[q]),r.length===0?null:a.jsx("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:f===null||g===null?a.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):Y?a.jsx(n1,{payload:s,onReset:()=>R(!1),stay:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,j?`도착 ${j}`:null,q?Io(q.name):null].filter(Boolean).join(" · "),guests:`${H}명`,summary:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,j?`도착 ${j}`:null,q?Io(q.name):null,`${H}명`].filter(Z=>!!Z).join(" · ")}):a.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[a.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{type:"button",onClick:()=>x(Z=>Math.max(0,Z-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:a.jsx(_n,{className:"size-3.5"})}),a.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),a.jsx("button",{type:"button",onClick:()=>x(Z=>Math.min(up,Z+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:a.jsx(La,{className:"size-3.5"})})]})]}),a.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((Z,ne)=>a.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:ne===0||ne===6?.75:.45},children:Z},Z))}),a.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((Z,ne)=>Z===null?a.jsx("span",{"aria-hidden":!0},`pad-${ne}`):a.jsx("button",{type:"button",disabled:Z.past,onClick:()=>v(Z.iso),"aria-pressed":Z.iso===y,"aria-label":`${g.getMonth()+1}월 ${Z.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:Z.iso===y?"var(--color-brand)":"transparent",backgroundColor:Z.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:Z.iso===y?"#fff":void 0,opacity:Z.past?.25:1,fontWeight:Z.iso===y?700:400},children:Z.day},Z.iso))}),(Q==null?void 0:Q.isWeekend)&&a.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&a.jsxs("div",{children:[a.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[a.jsx(l0,{className:"size-3"}),a.jsxs("span",{children:["도착 예정 시간 (체크인 ",c," 이후)"]})]}),a.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(Z=>{const ne=Z===j;return a.jsx("li",{children:a.jsx("button",{type:"button",onClick:()=>w(Z),"aria-pressed":ne,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:ne?"var(--color-brand)":"var(--color-surface-alt)",color:ne?"#fff":void 0},children:Z})},Z)})})]}),a.jsxs("div",{children:[a.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),a.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(Z=>{const ne=Z.unitId===N;return a.jsx("li",{children:a.jsxs("button",{type:"button",onClick:()=>A(Z.unitId),"aria-pressed":ne,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[a.jsx("span",{className:"min-w-0 truncate font-semibold",children:Z.name}),Z.maxCapacity&&a.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",Z.maxCapacity,"명"]})]})},Z.unitId)})})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{type:"button",onClick:()=>L(Z=>Math.max(1,Z-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:a.jsx(y0,{className:"size-3.5"})}),a.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[H,"명"]}),a.jsx("button",{type:"button",onClick:()=>L(Z=>Math.min(J,Z+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:a.jsx(z0,{className:"size-3.5"})})]})]}),a.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[a.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[a.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:Q?`${g.getMonth()+1}월 ${Q.day}일 · ${q?Io(q.name):""} · ${H}명`:"날짜를 골라 주세요"}),X!=null&&a.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[X.toLocaleString("ko-KR"),"원"]})]}),X!=null&&a.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),a.jsx("button",{type:"button",disabled:!I,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})})}function n1({payload:s,summary:r,stay:c,guests:u,onReset:f}){const d=s.place.phone;return a.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[a.jsxs("div",{className:"flex items-start gap-2.5",children:[a.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:a.jsx(du,{className:"size-4"})}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),a.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),a.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&a.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[a.jsx(gt,{className:"size-4"}),a.jsxs("span",{children:["전화로 예약하기 ",d]})]}),a.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[a.jsx(A0,{className:"size-4"}),a.jsx("span",{children:"다시 고르기"})]})]}),a.jsx(e1,{stay:c,guests:u})]})}function s1(){const s=W(),r=rt(s),c=nl(s),u=Ke(s)[0];return c.length===0?null:a.jsx(ct,{id:"units",title:He(s,r.path,`${r.label} 안내`),children:a.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:c.map((f,d)=>a.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[a.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&a.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:a.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&a.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>a.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:a.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),a.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[a.jsx("h3",{className:"h2",children:f.name}),f.intro&&a.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&a.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>a.jsx("li",{children:a.jsxs(Du,{children:[a.jsx("span",{className:"text-muted",children:m.label}),a.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),a.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:bt(u,f.name)}),s.place.phone&&a.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&a.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[a.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[a.jsxs("span",{children:[f.name," 구성 자세히"]}),a.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),a.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:m.label}),a.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function i1(){const s=W(),r=rt(s),c=nl(s),u=Ke(s)[0],[f,d]=_.useState(0);return c.length===0?null:a.jsxs(ct,{id:"units",title:He(s,r.path,`${r.label} 안내`),children:[a.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:c.map((m,x)=>a.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),c.map((m,x)=>a.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[a.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&a.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:a.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&a.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>a.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:a.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),a.jsxs("div",{className:"lg:col-span-5",children:[a.jsx("h3",{className:"h3",children:m.name}),m.intro&&a.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&a.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>a.jsx("li",{children:a.jsxs(Du,{children:[a.jsx("span",{className:"text-muted",children:g.label}),a.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&a.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:g.label}),a.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),a.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:bt(u,m.name)}),s.place.phone&&a.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function r1(){const s=W(),r=rt(s),c=nl(s),u=Ke(s)[0];if(c.length===0)return null;const f=c.length===1?"grid-cols-1 max-w-2xl mx-auto":c.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:bu(s);return a.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:a.jsxs("div",{className:"shell",children:[a.jsx(wu,{id:"units",title:He(s,r.path,`${r.label} 안내`)}),a.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:c.map(m=>a.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&a.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:a.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),a.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&a.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&a.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>a.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&a.jsxs("details",{className:"border-line mt-5 border-t",children:[a.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),a.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&a.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[a.jsx("dt",{className:"text-muted shrink-0",children:x.label}),a.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&a.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>a.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:a.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&a.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[a.jsx("dt",{className:"text-muted shrink-0",children:m.label}),a.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&a.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:bt(u)}),s.place.phone&&a.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function c1(){const s=W(),r=rt(s),c=nl(s),u=Ke(s)[0];return c.length===0?null:a.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[a.jsx(Eu,{id:"units",title:He(s,r.path,`${r.label} ${c.length}개 안내`)}),a.jsx("ul",{className:"space-y-20 lg:space-y-28",children:c.map(f=>a.jsxs("li",{children:[f.images[0]&&a.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[a.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),a.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),a.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&a.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&a.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&a.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>a.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[a.jsx("dt",{className:"text-muted shrink-0",children:d.label}),a.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&a.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>a.jsx("li",{children:a.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&a.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:bt(u)}),s.place.phone&&a.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function o1(){const s=W(),r=rt(s),c=nl(s);return c.length===0?null:a.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:a.jsxs("div",{className:"shell",children:[a.jsx(zu,{id:"units",title:He(s,r.path,`${r.label} ${c.length}개 안내`)}),a.jsx("ul",{className:"space-y-16 sm:space-y-24",children:c.map(u=>a.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[a.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&a.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&a.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>a.jsx("li",{children:a.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),a.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[a.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&a.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>a.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),a.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&a.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function u1(){const s=W(),r=rt(s),c=nl(s),u=Ke(s)[0];return c.length===0?null:a.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:a.jsxs("div",{className:"shell",children:[a.jsx(Tu,{id:"units",title:He(s,r.path,`${r.label} ${c.length}개 안내`)}),a.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:c.map((f,d)=>a.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&a.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:a.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),a.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[a.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:a.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&a.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>a.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[a.jsx("span",{className:"opacity-100",children:m.label}),a.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&a.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:bt(u)}),s.place.phone&&a.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&a.jsxs("details",{className:"group mt-3 px-1",children:[a.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[a.jsxs("span",{children:[f.name," 자세히"]}),a.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),a.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&a.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),a.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&a.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>a.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:a.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function f1(){const s=W(),r=nl(s),c=rt(s),u=Ke(s)[0];return r.length===0?null:a.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[a.jsx("div",{className:"shell",children:a.jsx(Nu,{id:"units",title:He(s,c.path,`${c.label} ${r.length}개 안내`)})}),r.map((f,d)=>a.jsx(d1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function d1({unit:s,no:r,dark:c,booking:u,phone:f}){return a.jsx("article",{className:"w-full",style:c?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:a.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[a.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[a.jsxs("div",{className:"relative",children:[a.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),a.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&a.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&a.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>a.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:d.label}),a.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&a.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:bt(u)}),f&&a.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),a.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&a.jsx("figure",{className:"w-full xl:w-[64%]",children:a.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&a.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:a.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&a.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>a.jsx("li",{children:a.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function m1(){const s=W(),r=nl(s),c=rt(s),u=Ke(s)[0];return r.length===0?null:a.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:[a.jsx("div",{className:"shell",children:a.jsx(Kp,{id:"units",title:He(s,c.path,`${c.label} ${r.length}개 안내`)})}),a.jsx("div",{className:"flex flex-col",children:r.map((f,d)=>a.jsx(h1,{unit:f,no:d+1,booking:u,phone:s.place.phone},f.unitId))})]})}function h1({unit:s,no:r,booking:c,phone:u}){return a.jsxs("article",{className:"border-line border-t",children:[s.images.length>0&&a.jsx(xa,{label:`${s.name} 사진`,align:"center",gap:0,arrows:"overlay",children:s.images.map(f=>a.jsx(Un,{basis:"basis-full",children:a.jsx("div",{className:"relative aspect-3/2 overflow-hidden",children:a.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},f.mediaId))}),a.jsxs("div",{className:"shell flex flex-col gap-3 py-6",children:[a.jsx("p",{className:"text-[length:var(--fs-xs)] uppercase opacity-70",style:{letterSpacing:"0.24em"},children:String(r).padStart(2,"0")}),a.jsx("h3",{className:"serif",style:{fontSize:"clamp(1.1rem, 2.4vw, 1.4rem)",fontWeight:"var(--tpl-heading-weight, 400)",letterSpacing:"var(--tpl-heading-tracking, 0.03em)"},children:s.name}),s.intro&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&a.jsx("dl",{className:"border-line divide-line mt-2 divide-y border-t",children:s.rows.map(f=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:f.label}),a.jsx("dd",{className:"text-right font-semibold",children:f.value})]},f.label))}),s.chips.length>0&&a.jsx("ul",{className:"mt-1 flex flex-wrap gap-1.5",children:s.chips.map(f=>a.jsx("li",{className:"border-line inline-flex items-center rounded-full border px-3 py-1 text-[length:var(--fs-xs)]",children:f.value},f.label))}),(c||u)&&a.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-semibold",children:[c&&a.jsx("a",{href:c.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:bt(c)}),u&&a.jsxs("a",{href:`tel:${u}`,className:"tap inline-flex items-center gap-1.5 underline underline-offset-4",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:u})]})]})]})]})}function Wo(){var v;const s=W(),r=rt(s),c=jr(s),[u,f]=_.useState(null),[d,m]=_.useState(!1),x=Sr();if(x==="reservation")return a.jsx(r1,{});if(x==="oasi")return a.jsx(c1,{});if(x==="studio")return a.jsx(o1,{});if(x==="pastel")return a.jsx(u1,{});if(x==="editorial")return a.jsx(f1,{});if(x==="paper")return a.jsx(m1,{});const g=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return a.jsx(s1,{});if(g==="rooms.tabs")return a.jsx(i1,{});const p=nl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return a.jsxs(ct,{id:"units",title:He(s,r.path,`${r.label} ${p.length}개 안내`),children:[a.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>a.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[a.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&a.jsx(p1,{images:j.images,name:j.name}),a.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[a.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&a.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>a.jsx("li",{children:a.jsxs(Du,{children:[!w.value.includes(w.label)&&a.jsx("span",{className:"text-muted",children:w.label}),a.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||c)&&a.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx("span",{children:"자세히 · 예약"}),a.jsx(La,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=c==null?void 0:c.offers.find(N=>N.unitId===j.unitId);return a.jsx(ha,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:a.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&a.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&a.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&a.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>a.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[a.jsx("dt",{className:"text-muted shrink-0",children:N.label}),a.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&a.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>a.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[a.jsx("dt",{className:"text-muted",children:N.label}),a.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),c&&a.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[a.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),a.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:a.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),c.phone&&a.jsxs("a",{href:`tel:${c.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx(gt,{className:"size-4"}),a.jsxs("span",{children:["전화 예약 ",c.phone]})]}),c.links.map(N=>a.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[a.jsx("span",{children:ju(N)}),a.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),c&&a.jsx(ha,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:a.jsx(Er,{})})]})}function p1({images:s,name:r}){return a.jsx(xa,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(c=>a.jsx(Un,{basis:"basis-full",children:a.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:a.jsx("img",{src:c.url,alt:c.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},c.mediaId))})}function x1(){const s=W(),r=Ke(s),c=bv(s),u=s.place.phone;return r.length===0&&c.length===0&&!u?null:a.jsx(ct,{id:"booking",tone:"alt",title:He(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:a.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[c.length>0&&a.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:c.map(f=>a.jsx(tx,{label:f.label,value:f.value},f.label))}),a.jsx("div",{className:c.length>0?"lg:col-span-5":"lg:col-span-12",children:a.jsxs("div",{className:c.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&a.jsxs(rp,{href:`tel:${u}`,icon:a.jsx(gt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>a.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=W(),r=jr(s);if(!r)return null;const{offers:c,links:u,contacts:f,phone:d}=r;return a.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:a.jsxs("div",{className:"shell",children:[a.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[a.jsx(Kb,{className:"size-4"}),a.jsx("span",{children:"Reservation"})]}),a.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:He(s,"booking","예약 안내")}),a.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),a.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[c.length>0&&a.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[a.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[a.jsx(Vb,{className:"size-3.5 opacity-100"}),a.jsx("span",{children:"객실별 요금 · 인원"})]}),a.jsx("ul",{className:"divide-y divide-black/5",children:c.map(m=>a.jsxs("li",{className:"p-4 sm:p-5",children:[a.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[a.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&a.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&a.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&a.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>a.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[a.jsx("dt",{className:"opacity-100",children:x.label}),a.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),a.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:a.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),a.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[a.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&a.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[a.jsx(gt,{className:"size-4"}),a.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>a.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[a.jsx("span",{children:ju(m)}),a.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&a.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[a.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),a.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>a.jsx("li",{children:a.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[a.jsx("span",{children:Bl(m)}),a.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&a.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),a.jsx(Er,{})]})})}function g1(){const s=W(),r=yv(s);return r.length===0?null:a.jsx(ct,{id:"space",title:He(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:a.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(c=>a.jsxs(Ou,{className:"p-4 sm:p-5",children:[a.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:c.label}),a.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:c.value})]},c.label))})})}function b1(){const s=W(),{place:r}=s,c=Rn(s);if(!r.phone&&!r.email&&c.length===0)return null;const u=[...r.phone?[{key:"phone",icon:gt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...c.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return a.jsx(ct,{id:"inquiry",title:He(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:a.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return a.jsx("li",{children:a.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[a.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[a.jsx(d,{className:"size-5 shrink-0 opacity-40"}),a.jsxs("span",{className:"min-w-0",children:[a.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),a.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&a.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function v1(){const s=W(),r=Nv(s);return r.length===0?null:a.jsx(ct,{id:"exhibition",tone:"alt",title:He(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:a.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(c=>a.jsx(tx,{label:c.label,value:c.value},c.label))})})}function y1(){const[s,r]=_.useState([]);return _.useEffect(()=>r(av()),[]),s}const j1=["봄","여름","가을","겨울"];function N1(){const s=W(),r=s.local.festivals,c=y1(),[u,f]=_.useState(null);if(r.length===0)return null;const d=j1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),x=[...c].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return a.jsxs(ct,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?a.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:a.jsx(a.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&a.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const j=p===v;return a.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),a.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return a.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[a.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),a.jsx(mp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&a.jsxs("div",{children:[a.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),a.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:c}){const[u,f]=_.useState(null);return a.jsxs(a.Fragment,{children:[a.jsx(xa,{label:r,children:s.map(d=>a.jsx(Un,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:a.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[a.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?a.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):a.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),a.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),a.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[a.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&a.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&a.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),a.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[a.jsx("span",{children:"자세히 보기"}),a.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},c??"all"),a.jsx(ha,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&a.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&a.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&a.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),a.jsxs("a",{href:Wv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[a.jsx("span",{children:"검색으로 열기"}),a.jsx(Hl,{className:"size-4"})]})]})})]})}const $s=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*$s},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*$s},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*$s}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/$s))}분`}function S1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function ma(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:S1(s.distanceText)}function w1(){const s=W(),{local:r}=s,c=r.restaurants.filter(v=>v.imageUrl),u=c.length>0||r.attractions.length>0,[f,d]=_.useState("all");if(!u)return null;const m=[...c,...r.attractions],x=v=>m.filter(j=>v.test(ma(j))).length,g=hp.filter((v,j)=>j===0||x(v)>0&&x(v)v.id===f)??hp[0],y=v=>p.test(ma(v));return a.jsxs(ct,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?a.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Vp(r.syncedAt)," 갱신"]}):void 0,footnote:a.jsxs(a.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",$s,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&a.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const j=v.id===f,w=x(v);return a.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",a.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),a.jsxs("div",{className:"space-y-10",children:[c.length>0&&a.jsx(pp,{title:"주변 맛집",icon:M0,places:c,within:y}),r.attractions.length>0&&a.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function E1({icon:s,children:r}){return a.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[a.jsx(s,{className:"size-4 opacity-100"}),a.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:c,within:u}){const f=c.filter(u),[d,m]=_.useState(null);return a.jsxs("div",{children:[a.jsx(E1,{icon:r,children:s}),a.jsx(xa,{label:s,children:f.map(x=>a.jsx(Un,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:a.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[a.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?a.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):a.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(ma(x))||x.distanceText)&&a.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(ma(x))??x.distanceText,a.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),a.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[a.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&a.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&a.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),a.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[a.jsx("span",{children:"자세히 보기"}),a.jsx(Hl,{className:"size-3.5"})]})]})]})},x.name))},f.length),a.jsx(ha,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&a.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&a.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(ma(d))||d.distanceText)&&a.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(ma(d))??d.distanceText,d.distanceText&&a.jsx("span",{className:"ml-1 font-normal opacity-85",children:d.distanceText})]}),d.location&&a.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),a.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[a.jsx("span",{children:"검색으로 열기"}),a.jsx(Hl,{className:"size-4"})]})]})}),a.jsx("ul",{hidden:!0,children:c.filter(x=>!u(x)).map(x=>a.jsxs("li",{children:[a.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&a.jsxs("span",{children:[" ",x.distanceText,hr(ma(x))&&` · ${hr(ma(x))}`]}),x.description&&a.jsx("p",{children:x.description}),x.location&&a.jsx("p",{children:x.location})]},x.name))}),f.length===0&&a.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}const z1={0:"맑음",1:"대체로 맑음",2:"구름 조금",3:"흐림",45:"안개",48:"착빙성 안개",51:"가벼운 이슬비",53:"보통 이슬비",55:"강한 이슬비",56:"가벼운 착빙성 이슬비",57:"강한 착빙성 이슬비",61:"약한 비",63:"보통 비",65:"강한 비",66:"약한 착빙성 비",67:"강한 착빙성 비",71:"약한 눈",73:"보통 눈",75:"강한 눈",77:"싸라기눈",80:"약한 소나기",81:"보통 소나기",82:"강한 소나기",85:"약한 소나기눈",86:"강한 소나기눈",95:"뇌우",96:"약한 우박 뇌우",99:"강한 우박 뇌우"};function T1(s){return z1[s]??"흐림"}function A1({initial:s,regionCode:r,latitude:c,longitude:u}){const[f,d]=_.useState(s);return _.useEffect(()=>{if(!r||c==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(c),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:T1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[c,u,r]),f}function xp(s){let r=[],c=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==c),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),c=d,s[d]}}function k1(s,r,c,u){const[f,d]=_.useState({});return _.useEffect(()=>{if(!(s!=null&&s.length)&&!(c!=null&&c.length))return;const m=s!=null&&s.length?xp(s):void 0,x=c!=null&&c.length?xp(c):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,c]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(c==null?void 0:c[0])??u]}const C1={맑음:C0,흐림:c0,비:n0,눈:i0};function _1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,c,u,f,d]=r;return`${Number(c)}월 ${Number(u)}일 ${f}:${d} 관측`}function M1(){var v,j,w,N,A;const s=W(),r=A1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),c=dv((r==null?void 0:r.condition)??""),u=mv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:c,[x,g]=k1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[c])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=_1(r.observedAt),y=C1[c];return a.jsx(ct,{id:"weather",tone:"alt",title:"오늘의 날씨",children:a.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[a.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),a.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[a.jsxs("p",{className:"flex items-baseline gap-2.5",children:[a.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),a.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),a.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&a.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&a.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&a.jsxs("p",{className:"w4-note-fade measure flex items-center gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[a.jsx("span",{className:"border-line shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),a.jsx("span",{children:g})]},g)]})]})})}function O1(){const s=W(),r=yu(s),c=s.theme.sections.find(g=>g.id==="photos"),u=(c==null?void 0:c.variantId)??"photos.grid",[f,d]=_.useState(null),m=_.useCallback(()=>d(null),[]),x=_.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return Ru(f!==null),_.useEffect(()=>{if(f===null)return;const g=p=>{p.key==="Escape"&&m(),p.key==="ArrowLeft"&&x(-1),p.key==="ArrowRight"&&x(1)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[f,m,x]),r.length===0?null:a.jsxs(ct,{id:"gallery",title:(c==null?void 0:c.name)||"공간 갤러리",children:[u==="photos.carousel"?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"lg:hidden",children:a.jsx(xa,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>a.jsx(Un,{basis:"basis-full",children:a.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),a.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>a.jsx("li",{children:a.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?a.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>a.jsx("li",{className:"break-inside-avoid",children:a.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):a.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>a.jsx("li",{children:a.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&a.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[a.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:a.jsx(yr,{className:"size-6"})}),a.jsx(gp,{dir:"prev",onClick:()=>x(-1)}),a.jsx(gp,{dir:"next",onClick:()=>x(1)}),a.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[a.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),a.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,a.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const c=s==="prev"?_n:La;return a.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:a.jsx(c,{className:"size-6"})})}function pr({image:s,onOpen:r,className:c,free:u=!1}){return a.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${c}`,"aria-label":`${s.alt} 크게 보기`,children:a.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=W(),{place:r,routes:c}=s,[u,f]=_.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ay(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return a.jsxs(ct,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[a.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&a.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:a.jsx("iframe",{title:`${r.name} 위치 지도`,src:ly(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),a.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:a.jsxs("div",{className:"panel p-5 sm:p-6",children:[a.jsx("p",{className:"label mb-2",children:"주소"}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),a.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?a.jsx(du,{className:"size-3.5"}):a.jsx(u0,{className:"size-3.5"}),a.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&a.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",a.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),a.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[a.jsxs("a",{href:Zp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[a.jsx(Zo,{className:"size-4"}),a.jsx("span",{children:"네이버 길찾기"})]}),a.jsxs("a",{href:ey(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[a.jsx(Zo,{className:"size-4"}),a.jsx("span",{children:"카카오 길찾기"})]}),p&&a.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[a.jsx(Zo,{className:"size-4"}),a.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),c.length>0&&a.jsxs("div",{className:"mt-8",children:[a.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[a.jsx(Fb,{className:"size-4 opacity-100"}),a.jsx("span",{children:"주요 거점 소요시간"})]}),a.jsx("div",{className:"panel overflow-hidden",children:a.jsx("div",{className:"slider-viewport",children:a.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[a.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),a.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:a.jsxs("tr",{children:[a.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),a.jsx("th",{scope:"col",className:"p-4",children:"차량"}),a.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),a.jsx("th",{scope:"col",className:"p-4",children:"거리"}),a.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),a.jsx("tbody",{className:"divide-line divide-y",children:c.map(v=>a.jsxs("tr",{children:[a.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),a.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),a.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),a.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),a.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function D1(){const s=W(),r=hv(s);if(r.length===0)return null;const c=r.some(u=>u.sourceType===G0.TEMPLATE);return a.jsx(ct,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:c?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:a.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:a.jsx(lx,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>a.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[a.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[a.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),a.jsx("span",{className:"flex-1",children:u.question}),a.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),a.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function nx(){var g,p,y,v;const s=W(),{place:r,site:c}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===ml.LODGING?jr(s):null,[m,x]=_.useState(!1);return a.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[a.jsxs("div",{className:"shell",children:[a.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[a.jsxs("div",{className:"space-y-4 md:col-span-7",children:[a.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),a.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&a.jsxs("p",{className:"flex items-start gap-2",children:[a.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),a.jsx("span",{children:f})]}),r.phone&&a.jsxs("p",{className:"flex items-center gap-2",children:[a.jsx(gt,{className:"size-4 shrink-0 opacity-100"}),a.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&a.jsxs("p",{className:"flex items-center gap-2",children:[a.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),a.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&a.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[a.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),a.jsx("ul",{className:"flex flex-wrap gap-2",children:a.jsx("li",{children:d?a.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:a.jsx("span",{children:"예약하기"})}):a.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[a.jsx("span",{children:Cn(u)}),a.jsx(d0,{className:"size-3.5"})]})})})]})]}),a.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[a.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&a.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&a.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&a.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&a.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),a.jsxs("p",{className:"byline shrink-0",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:c.updatedAt,children:Ba(c.updatedAt)})]})]}),a.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[a.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&a.jsx(ha,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:a.jsx(Er,{})})]})}function qa(){const s=W(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===ml.LODGING?jr(s):null,[m,x]=_.useState(!1);return!r&&!u&&!f?null:a.jsxs(a.Fragment,{children:[a.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[a.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[a.jsx(vr,{className:"size-4"}),a.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&a.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[a.jsx(hu,{className:"size-4"}),a.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&a.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border px-2 text-[length:var(--fs-sm)] font-bold",children:[a.jsx(gt,{className:"size-4"}),a.jsx("span",{children:"전화"})]}),u&&(d?a.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg border border-transparent px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):a.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg border border-transparent px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:bt(u)}))]}),d&&a.jsx(ha,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:a.jsx(Er,{})})]})}const sx=_.createContext(!1),Ft="var(--tpl-card, #fafafa)",Ne="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Gs="var(--tpl-inverse, #1c1917)",pa="var(--tpl-bg, #ffffff)",hl="var(--tpl-text, #09090b)";function R1({n:s}){return a.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:pa},children:s})}function xl({id:s,name:r,subtitle:c,count:u,link:f,children:d,dark:m}){const x=Sr(),g=_.useContext(sx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?a.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return a.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Gs:"var(--tpl-surface, #fafafa)",color:m?pa:hl,paddingBlock:"var(--section-space)"},children:a.jsxs("div",{className:"shell",children:[p?a.jsx(p,{id:s,title:r,lead:c,aside:y}):a.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[a.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[a.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),c&&a.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:c})]}),d,u&&a.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Ln({children:s,label:r,arrows:c="header",onSelect:u,onReady:f}){return a.jsx(xa,{label:r,gap:1,arrows:c,onSelect:u,onReady:f,children:s})}function pl({source:s,verified:r,imageCredit:c}){return!(s!=null&&s.name)&&!c?null:a.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&a.jsxs("span",{children:["출처 ·"," ",s.url?a.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),c&&a.jsxs("span",{children:["사진 · ",c]})]})}function Zs(s,r,c){return`총 ${s}${c}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let c=0;for(let u=0;u>>0;return vp[c%vp.length]}function ix(){const s=W(),r=It(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=_.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return a.jsxs(xl,{id:"songs",name:r.title||He(s,"songs","가요 다방"),subtitle:r.subtitle,count:Zs(r.items.length,r.unverified,"곡"),children:[a.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Gs,color:pa,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[a.jsxs("div",{className:"relative mx-auto size-[220px]",children:[a.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),a.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":Gs},children:a.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),a.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[a.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),a.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),a.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>a.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[a.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),a.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),a.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&a.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&a.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),a.jsxs("a",{href:Pv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[a.jsx(R0,{className:"size-4"}),a.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&a.jsx(pl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&a.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>a.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[a.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(g),"--w4-vinyl":Gs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),a.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),a.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[a.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&a.jsx(pl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function U1(){const s=W(),r=It(s,"daily"),[c,u]=_.useState();if(_.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=c===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===c);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>c);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return a.jsx(xl,{id:"daily",name:r.title||He(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Zs(f.length,r.unverified,"장"),children:a.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return a.jsx(L1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function L1({page:s,isToday:r,muted:c,hidden:u}){const[f,d]=s.monthDay.split("-");return a.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${c?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Ne,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[a.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Ne}}),a.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Ne},children:[a.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),a.jsx("p",{className:`serif mt-1 font-bold leading-none ${c?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&a.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),a.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&a.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),a.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!c&&s.body&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!c&&a.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Ne},children:a.jsx(pl,{source:s.source,verified:s.verified})})]})]})}function rx(){const s=W(),r=It(s,"people");return r.items.length===0?null:a.jsx(xl,{id:"people",name:r.title||He(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(c=>!c.imageUrl)?`${Zs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Zs(r.items.length,r.unverified,"명"),dark:!0,children:a.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Gs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[a.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),a.jsx("div",{className:"px-3 py-4",children:a.jsx(Ln,{label:"인물 목록",arrows:"overlay",children:r.items.map((c,u)=>a.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[c.imageUrl?a.jsx("img",{src:c.imageUrl,alt:`${c.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):a.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:c.name.trim().charAt(0)}),a.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[c.name,c.aka&&a.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",c.aka]})]}),a.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[c.role,c.years].filter(Boolean).join(" · ")}),c.oneLine&&a.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:c.oneLine}),a.jsx("div",{className:"mt-2",children:a.jsx(pl,{source:c.source,verified:c.verified,imageCredit:c.imageCredit})})]},`${c.name}-${u}`))})}),a.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function cx(){const s=W(),r=It(s,"chronicle");if(r.items.length===0)return null;const c=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=c.filter(f=>f.turning===!0).length;return a.jsx(xl,{id:"chronicle",name:r.title||He(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${c.length}개`,children:a.jsx(Ln,{label:"연표",children:c.map((f,d)=>{const m=f.turning===!0;return a.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[a.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),a.jsxs("div",{className:"relative my-3 h-3",children:[a.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Ne,right:d===c.length-1?"calc(100% - 12px)":0}}),a.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Ne}})]}),a.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&a.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Ne}}),a.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[a.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&a.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),a.jsx(pl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ox(){const s=W(),r=_.useMemo(()=>It(s,"reading"),[s]),c=r.items;if(c.length===0)return null;const u=new Set(c.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return a.jsx(xl,{id:"reading",name:r.title||He(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:a.jsx(Ln,{label:`${f} 읽기`,children:c.map((d,m)=>a.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:a.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Ne},children:[(u||d.year!=null)&&a.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&a.jsx("span",{className:"font-normal",children:d.year})]}),a.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),a.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),a.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),a.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:a.jsx(pl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ux(){const s=W(),r=It(s,"postcard");return r.items.length===0?null:a.jsx(xl,{id:"postcard",name:r.title||He(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Zs(r.items.length,r.unverified,"장"),children:a.jsx(Ln,{label:"엽서 목록",children:r.items.map((c,u)=>a.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:hl},children:[c.imageUrl&&a.jsx("img",{src:c.imageUrl,alt:`${c.place||c.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Ne}}),c.imageUrl&&a.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",c.imageCredit||"출처 표기 없음"]}),a.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[a.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Ne},children:[a.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",c.line,"”"]}),c.hashtags&&c.hashtags.length>0&&a.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:c.hashtags.join(" ")})]}),a.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[a.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Ne},children:["郵票",a.jsx("br",{}),"10원"]}),a.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:c.postmark||c.place||"소인"})]})]}),a.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:a.jsx(pl,{source:c.source,verified:c.verified})})]},`${c.line}-${u}`))})})}function H1(){const s=W(),r=It(s,"quiz"),[c,u]=_.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return a.jsx(xl,{id:"quiz",name:r.title||He(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:a.jsx(Ln,{label:"질문 목록",children:r.items.map((d,m)=>{const x=c.has(m);return a.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:a.jsxs("span",{className:"w4-flip-inner block size-full",children:[a.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:hl},children:[a.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),a.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),a.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),a.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[a.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),a.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),a.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:[d.topic&&a.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),a.jsx(pl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Hs=318,kn=168,jp=34,B1=16,Np=4;function fx(s,r,c){const u=Ll*2**c,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function q1(s){if(s.length<2)return 15;for(let r=B1;r>Np;r-=1){const c=s.map(d=>fx(d.lat,d.lng,r)),u=Math.max(...c.map(d=>d.x))-Math.min(...c.map(d=>d.x)),f=Math.max(...c.map(d=>d.y))-Math.min(...c.map(d=>d.y));if(u<=Hs-jp*2&&f<=kn-jp*2)return r}return Np}function $1(s,r){const c=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=c(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!G1(f,x)?f:void 0}),f=x)}),u}function G1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function Y1(s){const c=s.map(u=>({...u}));for(let u=1;uMath.hypot(c[u].x-y.x,c[u].y-y.y)<27);if(!d)break;const m=c[u].x-d.x,x=c[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;c[u].x+=(m||1)*p,c[u].y+=x*p}return c}function X1(s){return s.from?ty(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Zp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function Q1({stops:s}){const{place:r}=W(),c=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=$1(s,c),d=q1(f),m=Y1(f.map(N=>fx(N.lat,N.lng,d))),x=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,g=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=x-Hs/2,y=g-kn/2,v=2**d,j=[];for(let N=Math.floor(p/Ll);N<=Math.floor((p+Hs)/Ll);N+=1)for(let A=Math.floor(y/Ll);A<=Math.floor((y+kn)/Ll);A+=1){if(A<0||A>=v)continue;const H=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${H}/${A}.png`,left:N*Ll-p,top:A*Ll-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return a.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:kn,borderColor:Ne,backgroundColor:"#e8e5df"},children:[j.map(N=>a.jsx("img",{src:N.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),a.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:kn,viewBox:`0 0 ${Hs} ${kn}`,children:a.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const H=m[A];return a.jsx("a",{href:X1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:H.x-p,top:H.y-y,backgroundColor:Ze,color:pa,border:`1.5px solid ${pa}`},children:N.label},N.label)}),a.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function V1(s){const r=Math.floor(s/60),c=s%60;return[r>0?`${r}시간`:"",c>0?`${c}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(c=>({label:c.label,startTime:c.startTime,stops:c.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function Z1({item:s,badge:r,startTime:c,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=lv({name:s.name,startTime:c,stops:u}),[p,y]=_.useState(!1);return _.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),a.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Ne,...x?{borderRight:`2px dashed ${Ne}`}:null},children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Ne},children:[a.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:hl,color:pa,borderColor:hl}:{borderColor:Ne},children:r}),a.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",V1(g.totalMinutes)]})]}),a.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[a.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&a.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&a.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&a.jsx(Q1,{stops:g.stops.map(v=>v.stop)}),a.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,j)=>a.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[a.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),a.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Ne},children:[v.move>0&&a.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),a.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&a.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Ne}`}}),a.jsxs("span",{className:"min-w-0",children:[a.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[a.jsx(R1,{n:j+1}),v.stop.name]}),v.stop.note&&a.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),a.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),a.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Ne},children:[a.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:p?"접기":"지도 · 설명 보기"}),a.jsx("div",{hidden:!p,className:"pt-2.5",children:a.jsx(pl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function K1(){var g;const s=W(),r=It(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=_.useState(null),x=d??f[0];return u.length===0?null:a.jsxs(xl,{id:"itinerary",name:r.title||He(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&a.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return a.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,a.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>a.jsx("div",{hidden:p!==x,children:a.jsx(J1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function J1({tab:s,items:r,placeName:c}){const u=_.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=_.useState(0),m=_.useRef(null),x=_.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return a.jsxs(a.Fragment,{children:[u.length>1&&a.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return a.jsx("li",{children:a.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),a.jsx(Ln,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>a.jsx(Z1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:c,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=_.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Pp({box:f,interval:Wp,advance:()=>qy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return a.jsx(xl,{id:"video",name:r.title||He(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:a.jsxs("div",{className:"relative",children:[a.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Z0(y.url),w=K0(y.url),N=c===v;return a.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:a.jsxs("figure",{className:"space-y-2",children:[a.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Ne,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?a.jsx("iframe",{src:F0(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):a.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?a.jsx("img",{src:J0(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):a.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),a.jsx("span",{className:"absolute inset-0 grid place-items-center",children:a.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:a.jsx(w0,{className:"size-6"})})})]})}),y.caption&&a.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),a.jsx(pl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&a.jsxs(a.Fragment,{children:[a.jsx(Sp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),a.jsx(Sp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:c}){const u=s==="prev"?_n:La;return a.jsx("button",{type:"button",onClick:r,disabled:c,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:a.jsx(u,{className:"size-5"})})}const I1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},W1=s=>[{id:"songs",label:"가요 다방",Component:ix,dark:!1},{id:"people",label:"인물 열전",Component:rx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:cx,dark:!1},{id:"reading",label:s,Component:ox,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ux,dark:!1}];function P1(){var x;const s=W(),r=s.place.addressLocality??"지역",c=He(s,"story",`${r} 이야기`),u=It(s,"reading").title||`${r} 읽기`,f=W1(u).filter(g=>It(s,g.id).items.length>0),[d,m]=_.useState(0);return f.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:hl,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:a.jsxs("div",{className:"shell",children:[a.jsx("h2",{id:"story-heading",className:"h2",children:c}),a.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",I1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),a.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":c,children:f.map((g,p)=>{const y=p===d;return a.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:hl,color:pa,borderColor:hl}:{borderColor:Ne},children:g.label},g.id)})})]})}),a.jsx(sx.Provider,{value:!0,children:f.map((g,p)=>a.jsx("div",{hidden:p!==d,children:a.jsx(g.Component,{})},g.id))})]})}const ej={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&ej[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},c=r(s.startDate),u=r(s.endDate);if(c&&u)return c===u?c:`${c} – ${u}`;if(c)return`${c}부터`;if(u)return`${u}까지`}function tj(){const s=W(),r=It(s,"event"),[c,u]=_.useState();_.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=_.useState(null),m=_.useCallback(()=>d(null),[]);if(Ru(f!==null),_.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&c?wp(x,c):void 0;return a.jsxs(xl,{id:"event",name:r.title||He(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[a.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:a.jsx(lx,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=c?wp(p,c):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return a.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Ne,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[a.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),a.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Ne}:void 0,children:p.imageUrl?a.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),a.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&a.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?pa:hl,borderColor:v==="open"&&j!=="공지"?Ze:Ne},children:j}),w&&a.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),a.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&a.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&a.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:p.howTo}),p.body&&a.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),a.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&a.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:a.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Ne,color:hl},children:[x.imageUrl&&a.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),a.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&a.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Ne},children:eu(x,g)}),tu(x)&&a.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),a.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&a.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&a.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:x.howTo}),x.body&&a.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),a.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?a.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):a.jsx("span",{}),a.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:[a.jsx(yr,{className:"size-4"}),a.jsx("span",{children:"닫기"})]})]})]})]})})]})}const lj={songs:ix,daily:U1,people:rx,chronicle:cx,reading:ox,postcard:ux,quiz:H1,itinerary:K1,video:F1,event:tj,story:P1},aj="/v1/site/review",nj="/v1/site/reviews",Ep=5,zp=500;function sj(){const s=W(),[r,c]=_.useState(s.reviews??[]),u=_.useRef(Date.now()),[f,d]=_.useState(0),[m,x]=_.useState(""),[g,p]=_.useState(!1),[y,v]=_.useState(!1),[j,w]=_.useState(null),N=s.site.placeId,A=_.useCallback(async()=>{try{const Y=await fetch(`${nj}?place_id=${encodeURIComponent(N)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&c(R.items)}catch{}},[N]);_.useEffect(()=>{u.current=Date.now(),A()},[A]),_.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function H(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const q=await(await fetch(aj,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(q!=null&&q.success),message:String((q==null?void 0:q.message)??"")}),q!=null&&q.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const L=Math.ceil(r.length/Ep);return a.jsxs(ct,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&a.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>a.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[a.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),a.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[a.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),a.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Vp(Y.publishedAt)})]})]},Y.reviewId))}),L>1&&a.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:L},(Y,R)=>a.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&a.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[a.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),a.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),a.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),a.jsx(ha,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:a.jsxs("form",{onSubmit:H,className:"flex flex-col gap-3",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),a.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),a.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",a.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),a.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),a.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),a.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[a.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),a.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&a.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),a.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ij(){const s=W().socialPosts??[];return s.length?a.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[a.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),a.jsx("p",{className:"mb-6 text-sm opacity-85",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),a.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>a.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[a.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-85",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),a.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&a.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Bs=4,ht=56,ou=190,lu="#1b1a15",rj="#efe7d3",Tp="#bf2f1b";function dx(s=cu){return s-ht-ou-ht-24}function mx(s,r,c){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=c){d=x;return}if(d&&u.push(d),s.measureText(m).width<=c){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>c&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function cj(s,r,c){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=c){f=m;return}if(f&&u.push(f),s.measureText(d).width<=c){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>c&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const oj="/v1/image/relay?url=";async function uj(s){const r=(c,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=c});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${oj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function fj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Ap(s,{photoUrl:r,text:c,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=fj();d.clearRect(0,0,m,m),d.fillStyle=rj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await uj(r),y=m-ht*2,v=y/1.5,j=Math.max(y/g.width,v/g.height),w=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(ht,ht,y,v),d.clip(),d.drawImage(g,ht+(y-w)/2,ht+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(ht+.5,ht+.5,y-1,v-1);const A=ht+v+36,H=m-ht-ou,L=dx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(H,A),d.lineTo(H,m-ht-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=mx(d,`“${c.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,L),R=Y.slice(0,Bs);if(Y.length>Bs){let I=R[Bs-1];for(;I.length&&d.measureText(`${I}…`).width>L;)I=I.slice(0,-1);R[Bs-1]=`${I}…`}R.forEach((I,le)=>d.fillText(I,ht,A+50+le*60));const Q=H+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Q-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Q,A+46),d.fillText("10원",Q,A+78),d.save(),d.translate(Q,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${x}`;const q=cj(d,u,100).slice(0,2),J=8-(q.length-1)*26/2;q.forEach((I,le)=>d.fillText(I,0,J+le*26)),d.restore();const X=m-ht-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(ht,X-20),d.lineTo(m-ht,X-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,ht,X+6),p}const kp="postcard.png";function dj(){const s=W(),r=(s.media??[]).filter(R=>R.url),c=_.useRef(null),[u,f]=_.useState(0),[d,m]=_.useState(""),[x,g]=_.useState(""),[p,y]=_.useState(!1),[v,j]=_.useState(!0);_.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(_.useEffect(()=>{const R=c.current,Q=r[u];if(!R||!(Q!=null&&Q.url))return;const q=window.setTimeout(()=>{Ap(R,{photoUrl:Q.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(q)},[u,d,w,N,r]),_.useEffect(()=>{var q;const R=c.current,Q=r[u];!R||!(Q!=null&&Q.url)||!((q=document.fonts)!=null&&q.ready)||document.fonts.ready.then(()=>Ap(R,{photoUrl:Q.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var q;const Q=(q=c.current)==null?void 0:q.getContext("2d");return Q?(Q.font="600 46px serif",mx(Q,`“${R}”`,dx()).length<=Bs):!0}function H(){return new Promise(R=>{const Q=c.current;if(!Q)return R(null);Q.toBlob(q=>R(q),"image/png",.95)})}function L(R){const Q=URL.createObjectURL(R),q=document.createElement("a");q.href=Q,q.download=kp,q.click(),URL.revokeObjectURL(Q)}async function Y(){var J,X;const R=await H();if(!R)return;const Q=((J=document.querySelector('meta[property="og:url"]'))==null?void 0:J.content)??`${location.origin}${location.pathname}`,q=new File([R],kp,{type:"image/png"});if((X=navigator.canShare)!=null&&X.call(navigator,{files:[q]})){await navigator.share({files:[q],title:`${w} 엽서`,text:Q}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Q}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}L(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return a.jsx(ct,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:a.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[a.jsx("canvas",{ref:c,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),a.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[a.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:a.jsx(xa,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Q)=>a.jsx("button",{type:"button",onClick:()=>f(Q),role:"radio","aria-checked":Q===u,"aria-label":`사진 ${Q+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Q===u?1:.5},children:a.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),a.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),a.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),a.jsx("button",{type:"button",onClick:()=>void H().then(R=>R&&L(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):a.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&a.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function mj({children:s}){return a.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[a.jsx(xj,{}),a.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),a.jsx(gj,{}),a.jsx(qa,{})]})}function hx(){const s=W(),r=rt(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(c=>Ht(s,c.id)).map(c=>({label:He(s,c.id,c.fallback),href:c.href}))}const hj=24,pj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function xj(){const s=W(),r=hx(),[c,u]=_.useState(!1);_.useEffect(()=>{const d=()=>u(window.scrollY>hj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=c?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return a.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${c?"border-line border-b backdrop-blur-md":""}`,style:c?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:pj},children:a.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[a.jsx("a",{href:"#top",className:"min-w-0",children:a.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>a.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&a.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&a.jsxs("details",{className:"lg:hidden",children:[a.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),a.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:a.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>a.jsx("li",{children:a.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function gj(){var p,y,v,j;const s=W(),{place:r,site:c,narrative:u}=s,f=hx(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Rn(s),g=u.about[0]??u.summary;return a.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:a.jsxs("div",{className:"shell",children:[a.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&a.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),a.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:"주소"}),a.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:"전화"}),a.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:a.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:"이메일"}),a.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:a.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:"예약"}),a.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:a.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Cn(m)})})]})]}),f.length>0&&a.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:a.jsx("ul",{className:"space-y-3",children:f.map(w=>a.jsx("li",{children:a.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),a.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&a.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>a.jsx("li",{children:a.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Cn(w)})},w.url))}),a.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[a.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&a.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&a.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&a.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&a.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),a.jsxs("span",{className:"byline",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:c.updatedAt,children:Ba(c.updatedAt)})]})]})]})})}const bj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,vj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function yj({children:s}){var y,v,j,w;const r=W(),{place:c}=r,u=rt(r),f=Ke(r)[0],d=Rn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=c.roadAddress??c.address;return a.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:vj,children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:bj}}),a.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[a.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[a.jsxs("a",{href:"#top",className:"block",children:[a.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:c.name}),c.englishName&&a.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:c.englishName})]}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:a.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>a.jsx("li",{children:a.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&a.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:bt(f)})]}),a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&a.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&a.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>a.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&a.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),a.jsx("span",{children:N})]},N))}),g&&a.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:a.jsx(ql,{children:g})})]}),s]})]}),a.jsx("footer",{className:"border-line mt-auto w-full border-t",children:a.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[a.jsxs("p",{children:["[",c.name,"]"]}),d.length>0?a.jsx("ul",{className:"space-y-1",children:d.map(N=>a.jsx("li",{children:a.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Cn(N)})},N.url))}):a.jsx("span",{}),a.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&a.jsx("p",{children:p}),c.phone&&a.jsx("p",{children:a.jsx("a",{href:`tel:${c.phone}`,className:"underline underline-offset-[5px]",children:c.phone})}),c.email&&a.jsx("p",{children:c.email}),((y=c.legal)==null?void 0:y.representative)&&a.jsxs("p",{children:["대표 ",c.legal.representative]}),((v=c.legal)==null?void 0:v.businessRegistrationNumber)&&a.jsxs("p",{children:["사업자등록번호 ",c.legal.businessRegistrationNumber]}),((j=c.legal)==null?void 0:j.mailOrderNumber)&&a.jsxs("p",{children:["통신판매업신고 ",c.legal.mailOrderNumber]}),((w=c.legal)==null?void 0:w.licenseNumber)&&a.jsxs("p",{children:[c.legal.licenseLabel??"인허가번호"," ",c.legal.licenseNumber]}),a.jsxs("p",{className:"byline",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",c.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:r.site.updatedAt,children:Ba(r.site.updatedAt)})]})]})]})}),a.jsx(qa,{})]})}function jj({children:s}){var j,w,N,A;const r=W(),{place:c,narrative:u,site:f}=r,d=rt(r),m=Dn(r),x=Ha(r),g=Ke(r)[0],p=gu(r),y=c.roadAddress??c.address,v=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(H=>H.show);return a.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[a.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:a.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[a.jsx("a",{href:"#top",className:"block min-w-0",children:a.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:c.name})}),(u.tagline??u.heroSubline)&&a.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:a.jsx(ql,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&a.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:"최저가"}),a.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(H=>a.jsxs("div",{children:[a.jsx("dt",{className:"label",children:H.label}),a.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:H.value})]},H.label))]}),g&&a.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:bt(g)}),c.phone&&a.jsxs("a",{href:`tel:${c.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",c.phone]}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:a.jsx("ul",{className:"space-y-0.5",children:v.map(H=>a.jsx("li",{children:a.jsx("a",{href:H.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:H.label})},H.label))})}),p&&a.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:a.jsx("ul",{className:"space-y-0.5",children:a.jsx("li",{children:a.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),a.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&a.jsx("p",{className:"break-keep",children:y}),c.phone&&a.jsx("p",{children:c.phone}),c.email&&a.jsx("p",{children:a.jsx("a",{href:`mailto:${c.email}`,className:"underline-offset-2 hover:underline",children:c.email})}),a.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[a.jsxs("span",{children:["상호: ",c.name]}),((j=c.legal)==null?void 0:j.representative)&&a.jsxs("span",{children:["대표: ",c.legal.representative]}),((w=c.legal)==null?void 0:w.businessRegistrationNumber)&&a.jsxs("span",{children:["사업자등록번호: ",c.legal.businessRegistrationNumber]}),((N=c.legal)==null?void 0:N.mailOrderNumber)&&a.jsxs("span",{children:["통신판매업신고: ",c.legal.mailOrderNumber]}),((A=c.legal)==null?void 0:A.licenseNumber)&&a.jsxs("span",{children:[c.legal.licenseLabel??"인허가번호",": ",c.legal.licenseNumber]})]}),a.jsxs("p",{className:"byline pt-1",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",c.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:f.updatedAt,children:Ba(f.updatedAt)})]})]})]})}),a.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),a.jsx(qa,{})]})}const Nj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,Sj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function wj({children:s}){const r=W(),c=rt(r),u=Rn(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:c.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return a.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:Sj,children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:Nj}}),a.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:a.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[a.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:a.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>a.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&a.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:a.jsx(gt,{className:"size-4"})}),u.map(d=>a.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?a.jsx(h0,{className:"size-4"}):a.jsx(hu,{className:"size-4"})},d.url)),a.jsxs("details",{className:"relative lg:hidden",children:[a.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:a.jsx(Dp,{className:"size-5"})}),a.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:a.jsx("ul",{children:f.map(d=>a.jsx("li",{children:a.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,a.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:a.jsx(nx,{})}),a.jsx(qa,{})]})}function Ej({children:s}){var p,y,v,j;const r=W(),{place:c,site:u}=r,f=Qp(),d=zj(f),m=Ke(r)[0],x=gu(r),g=c.roadAddress??c.address;return a.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[a.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:a.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[a.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:c.name}),a.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[c.phone&&a.jsx("a",{href:`tel:${c.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:c.phone}),m&&a.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:bt(m)})]})]})}),a.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&a.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:a.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return a.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[a.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),a.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),a.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),a.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:a.jsxs("div",{className:"shell",children:[a.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),a.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[a.jsxs("div",{className:"md:col-span-5",children:[a.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:c.name}),c.englishName&&a.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:c.englishName})]}),a.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&a.jsx("p",{children:g}),c.phone&&a.jsx("p",{children:a.jsx("a",{href:`tel:${c.phone}`,className:"underline underline-offset-4",children:c.phone})}),c.email&&a.jsx("p",{children:a.jsx("a",{href:`mailto:${c.email}`,className:"underline underline-offset-4",children:c.email})})]}),x&&a.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:a.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:a.jsx("li",{children:a.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-90 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),a.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[a.jsxs("span",{children:["상호: ",c.name]}),((p=c.legal)==null?void 0:p.representative)&&a.jsxs("span",{children:["대표: ",c.legal.representative]}),((y=c.legal)==null?void 0:y.businessRegistrationNumber)&&a.jsxs("span",{children:["사업자등록번호: ",c.legal.businessRegistrationNumber]}),((v=c.legal)==null?void 0:v.mailOrderNumber)&&a.jsxs("span",{children:["통신판매업신고: ",c.legal.mailOrderNumber]}),((j=c.legal)==null?void 0:j.licenseNumber)&&a.jsxs("span",{children:[c.legal.licenseLabel??"인허가번호",": ",c.legal.licenseNumber]})]}),a.jsxs("p",{className:"byline shrink-0",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",c.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:u.updatedAt,children:Ba(u.updatedAt)})]})]})]})}),a.jsx(qa,{})]})}function zj(s){const r=s.map(f=>f.anchor).join(","),[c,u]=_.useState("");return _.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),c}const Tj={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Aj={about:"소개",info:"이용 정보",units:"객실",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function kj(){var u;const s=W(),r=new Set,c=[];for(const f of Gp(s)){const d=Tj[f.id];!d||r.has(d)||d==="units"&&s.units.length===0||(r.add(d),c.push({label:((u=f.name)==null?void 0:u.trim())||Aj[d]||d,anchor:d}))}return r.has("location")||c.push({label:"오시는 길",anchor:"location"}),c}function Cj(s){const r=s.map(f=>f.anchor).join(","),[c,u]=_.useState("");return _.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),c}function _j({children:s}){var x,g,p,y;const r=W(),{place:c,site:u}=r,f=kj(),d=Cj(f),m=c.roadAddress??c.address;return a.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--tpl-text, #1a1a1a)"},children:[a.jsxs("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 90%, transparent)"},children:[a.jsxs("div",{className:"shell flex h-14 items-center justify-between gap-3",children:[a.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)]",style:{fontWeight:"var(--tpl-heading-weight, 400)"},children:c.name}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[a.jsx(Up,{}),c.phone&&a.jsx("a",{href:`tel:${c.phone}`,className:"tap flex size-9 items-center justify-center rounded-full","aria-label":"전화 걸기",children:a.jsx(gt,{className:"size-4"})})]})]}),f.length>0&&a.jsx("nav",{"aria-label":"주요 메뉴",className:"border-line border-t",children:a.jsx("ul",{className:"shell flex gap-5 overflow-x-auto",children:f.map(v=>{const j=v.anchor===d;return a.jsx("li",{className:"shrink-0",children:a.jsx("a",{href:`#${v.anchor}`,"aria-current":j?"true":void 0,className:"tap flex h-11 items-center whitespace-nowrap text-[length:var(--fs-sm)]",style:{fontWeight:j?700:400,boxShadow:j?"inset 0 -2px 0 currentColor":void 0},children:v.label})},v.anchor)})})})]}),a.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),a.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-14",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:a.jsxs("div",{className:"shell flex flex-col gap-4 text-[length:var(--fs-sm)]",children:[a.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:"var(--tpl-heading-weight, 400)"},children:c.name}),m&&a.jsx("p",{className:"opacity-100",children:m}),c.phone&&a.jsx("p",{children:a.jsx("a",{href:`tel:${c.phone}`,className:"underline-offset-2 hover:underline",children:c.phone})}),a.jsxs("div",{className:"border-line flex flex-wrap items-center gap-x-3 gap-y-1 border-t pt-4 text-[length:var(--fs-xs)] opacity-100",children:[a.jsxs("span",{children:["상호: ",c.name]}),((x=c.legal)==null?void 0:x.representative)&&a.jsxs("span",{children:["대표: ",c.legal.representative]}),((g=c.legal)==null?void 0:g.businessRegistrationNumber)&&a.jsxs("span",{children:["사업자등록번호: ",c.legal.businessRegistrationNumber]}),((p=c.legal)==null?void 0:p.mailOrderNumber)&&a.jsxs("span",{children:["통신판매업신고: ",c.legal.mailOrderNumber]}),((y=c.legal)==null?void 0:y.licenseNumber)&&a.jsxs("span",{children:[c.legal.licenseLabel??"인허가번호",": ",c.legal.licenseNumber]})]}),a.jsxs("p",{className:"byline text-[length:var(--fs-xs)] opacity-100",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",c.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:u.updatedAt,children:Ba(u.updatedAt)})]}),a.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[a.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})}),a.jsx(qa,{})]})}function Mj(){const s=W(),r=s.place.category===ml.LODGING,c={intro:$y,info:Ky,rooms:Wo,menu:Wo,programs:Wo,booking:r?dp:x1,space:g1,inquiry:b1,exhibition:v1,photos:O1,festival:N1,local:w1,weather:M1,map:bp,faq:D1,...lj},u=new Set;return a.jsxs("main",{className:"w-full flex-1",children:[a.jsx(Iv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=c[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),a.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[a.jsx(d,{}),f.id==="intro"&&a.jsx(cp,{})]},f.id))}),!Ht(s,"map")&&a.jsx(bp,{}),r&&!Av(s,"booking")&&a.jsx(dp,{}),!Ht(s,"intro")&&a.jsx(cp,{}),a.jsx(sj,{}),a.jsx(dj,{}),Ht(s,"social")&&a.jsx("div",{"data-editor-id":"social",children:a.jsx(ij,{})})]})}function uu({payload:s}){const r=Xp(s.theme.templateId),c=r==="reservation"?mj:r==="oasi"?yj:r==="studio"?jj:r==="pastel"?wj:r==="editorial"?Ej:r==="paper"?_j:Oj;return a.jsx(U0,{payload:s,children:a.jsx(c,{children:a.jsx(Mj,{})})})}function Oj({children:s}){return a.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[a.jsx(kv,{}),a.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),a.jsx(nx,{}),a.jsx(qa,{})]})}function Dj(s){const{colors:r,look:c}=s.theme,u=nv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(c){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(c.fontHeading)],["--tpl-font-body",d(c.fontBody)],["--tpl-heading-tracking",d(c.headingTracking)],["--tpl-heading-weight",d(c.headingWeight)],["--tpl-section-space",d(c.sectionSpace)],["--tpl-border-width",d(c.borderWidth)],["--tpl-radius",d(c.radius)],["--tpl-shadow",d(c.shadow)],["--tpl-texture",d(c.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const Rj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Uj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Rj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Lj(){return _.useEffect(()=>Uu(!0),[]),null}async function Hj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),c=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!c.ok)throw new Error(`HTTP ${c.status}`);const u=await c.json();for(const[d,m]of Object.entries(Dj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Uj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(a.jsxs(_.StrictMode,{children:[a.jsx(uu,{payload:u}),a.jsx(Lj,{})]})),Uu(!0)}const _p=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,a.jsx(_.StrictMode,{children:a.jsx(uu,{payload:Cp})})):_p?Hj(_p).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):kb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-B93Httry.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(a.jsx(_.StrictMode,{children:a.jsx(uu,{payload:s})}))});export{Vh as F,it as L,ml as P,G0 as S,Bj as a}; diff --git a/solution/site/scripts/mockup/vendor/index-BlUPL5q7.css b/solution/site/scripts/mockup/vendor/index-BlUPL5q7.css new file mode 100644 index 0000000..aa60a69 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/index-BlUPL5q7.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-400:oklch(82.8% .189 84.429);--color-amber-700:oklch(55.5% .163 48.998);--color-emerald-600:oklch(59.6% .145 163.225);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}:root,:host{--color-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-muted:color-mix(in oklab, currentColor 96%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[30rem\]{min-width:30rem}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-\[190px\]{flex-basis:190px}.basis-\[225px\]{flex-basis:225px}.basis-full{flex-basis:100%}.border-collapse{border-collapse:collapse}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14\.5px\]{font-size:14.5px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-current\/90{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/90{color:color-mix(in oklab,currentcolor 90%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-45{opacity:.45}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-95:hover{opacity:.95}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-4\/3{aspect-ratio:4/3}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-\[60\%\]{max-width:60%}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.sm\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-3\.5{padding:calc(var(--spacing) * 3.5)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/moonlight-stay-B93Httry.js b/solution/site/scripts/mockup/vendor/moonlight-stay-B93Httry.js new file mode 100644 index 0000000..d07d215 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/moonlight-stay-B93Httry.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-0DqrdnlD.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/moonlight-stay-DT_lL_bl.js b/solution/site/scripts/mockup/vendor/moonlight-stay-DT_lL_bl.js new file mode 100644 index 0000000..27a6645 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/moonlight-stay-DT_lL_bl.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-DrxjIq-M.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/index-4QQVvRLD.css b/solution/site/scripts/mockup/vendor/retired/index-4QQVvRLD.css similarity index 100% rename from solution/site/scripts/mockup/vendor/index-4QQVvRLD.css rename to solution/site/scripts/mockup/vendor/retired/index-4QQVvRLD.css diff --git a/solution/site/scripts/mockup/vendor/retired/index-7KJl64Jx.css b/solution/site/scripts/mockup/vendor/retired/index-7KJl64Jx.css new file mode 100644 index 0000000..1795572 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-7KJl64Jx.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-7lQty0Rm.js b/solution/site/scripts/mockup/vendor/retired/index-7lQty0Rm.js new file mode 100644 index 0000000..2e7d4a4 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-7lQty0Rm.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Oh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function E0(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function z0(){return Rh||(Rh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function T0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(x)&&u(x),Z(M)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(x)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(x,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function _0(){return Bh||(Bh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function C0(){if(qh)return xt;qh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=C0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function M0(){if(Yh)return Ds;Yh=1;var s=_0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),kf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ms={readContext:ut,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:Ai,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Cr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ps()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Hg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),mh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(As(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(As(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function As(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(As(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(m0,e),ar=null,lr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>O.createElement("svg",{ref:x,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!U0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(L0,{ref:d,iconNode:r,className:Mp(`lucide-${D0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=_e("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=_e("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=_e("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=_e("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=_e("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=_e("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=_e("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=_e("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=_e("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=_e("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=_e("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=_e("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=_e("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=_e("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=_e("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=_e("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=_e("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=_e("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_b=_e("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",Cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=_e("youtube",kb),Rp=O.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Rp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,g]=O.useState(!1),[x,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Qh(x.now)}${x.total?` / ${Qh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Vh.VERIFIED,Vh.CORRECTED];function Up(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Tj={PUBLISHED:3};function Cn(s){return s.filter(r=>Up(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of Cn(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Up(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:Cn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??Ib),x=u+m;if(x+g>Wb){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,g,x]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Lp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Bp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function qp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??qp(s)[0]??av(s)[0]}function bu(s){return Cn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Lp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=_t(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Lp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(Cn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=qp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Bp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=_t(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=An(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[x,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return O.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Uv[s??""]??"default"}function Sr(){return Yp(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Hv),x=f?{href:f.url,label:`${An(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:g||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!tp(g)||!tp(x)?g===x:_u(g,x)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=ap(d)&&ap(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Da(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Mu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Da(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(G){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>ku(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Ey(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return Cu(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function zy(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(x,p),K=ce.measureSize(le),he=my(K),Xe=ry(g,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ce=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:pa}},xa)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=pa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*xa+gt.get()*(1-xa);sl.set(Ps),pa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=cy(u,f,()=>te(qn),bl=>Ce(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,j,tt),Hn=Sy(v,oe,F,ze,Pt),Ln=wy(De,Te,at,gl,Hn,Pt,m),pt=yy(ze),Js=Qs(),Fs=Ay(r,o,m,A),{slideRegistry:Bn}=Ny(ie,G,oe,fe,E,Oe),Ba=Ey(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),g=Qs(),x=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Oy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>g.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,g]=O.useState(),x=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{_u(o.current,s)||(o.current=s,x())},[s,x]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,x())},[r,x]),O.useEffect(()=>{if(ay()&&m){br.globalOptions=Ou.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Ou.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=O.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(x);le.current=x;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=O.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function qy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[190px]",children:n.jsx($y,{post:o})},o.postId))})})}function $y({post:s}){const{month:r,day:o,weekday:u}=qy(s.publishedAt),f=By(r),d=Ly[f];return n.jsxs("article",{className:"tpl-border flex aspect-square flex-col gap-2 overflow-hidden rounded border p-4",style:{backgroundColor:"var(--tpl-card, #efe7d3)"},children:[n.jsxs("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:d},children:[r,"월 ",o,"일 · ",u]}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body}),n.jsx("span",{className:"sr-only",children:Su(s.publishedAt)})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(){var j,w;const s=P(),r=bu(s),o=Cn(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Ky,{text:N},N.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,g]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=fp(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Bp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Py(s),[s]),o=O.useMemo(()=>{var K;return((K=Cn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Iy(o),[o]),[f,d]=O.useState(null),[m,g]=O.useState(0);O.useEffect(()=>d(new Date),[]);const x=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&x?Wy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(up,K+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),g=Sr();if(g==="reservation")return n.jsx(a1,{});if(g==="oasi")return n.jsx(n1,{});if(g==="studio")return n.jsx(s1,{});if(g==="pastel")return n.jsx(i1,{});if(g==="editorial")return n.jsx(r1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(t1,{});if(x==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(o1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=hp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:_b,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:ep(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function y1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function j1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:y1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function N1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,g=o!=null&&o.length?xp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const S1={맑음:Tb,흐림:sb,비:tb,눈:ab};function w1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function E1(){var v,j,w,N,A;const s=P(),r=j1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=N1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=w1(r.observedAt),y=S1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function z1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),g=O.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(gp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=Pv(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function T1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:An(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=O.useContext(ex),p=g==="reservation"?Eu:g==="oasi"?zu:g==="studio"?Tu:g==="pastel"?Au:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Jv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function _1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(C1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function k1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,jp=34,M1=16,Np=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function O1(s){if(s.length<2)return 15;for(let r=M1;r>Np;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-jp*2&&f<=Tn-jp*2)return r}return Np}function D1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!R1(f,g)?f:void 0}),f=g)}),u}function R1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function U1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function H1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function L1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=D1(s,o),d=O1(f),m=U1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+Tn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:H1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function B1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function q1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",B1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(L1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function $1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),g=O.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(q1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const X1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Q1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function V1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",X1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Z1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Z1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function K1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?wp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const J1={songs:tx,daily:_1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:k1,itinerary:$1,video:G1,event:K1,story:V1},F1="/v1/site/review",W1="/v1/site/reviews",Ep=5,zp=500;function I1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,g]=O.useState(""),[x,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${W1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(F1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function P1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",ej="#efe7d3",Tp="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function tj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const lj="/v1/image/relay?url=";async function aj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${lj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function nj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Ap(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=nj();d.clearRect(0,0,m,m),d.fillStyle=ej,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await aj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${g}`;const X=tj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const _p="postcard.png";function sj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[g,x]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Ap(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Ap(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=_p,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],_p,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function ij({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(oj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(uj,{}),n.jsx(Rn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const rj=24,cj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function oj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>rj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:cj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function uj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:An(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:An(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const fj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,dj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function mj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:An(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function hj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const pj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,xj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function gj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:xj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:pj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Rn,{})]})}function bj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Gp(),d=vj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function vj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function yj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?dp:u1,space:f1,inquiry:d1,exhibition:m1,photos:z1,festival:x1,local:b1,weather:E1,map:bp,faq:T1,...J1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(bp,{}),r&&!Tv(s,"booking")&&n.jsx(dp,{}),!Lt(s,"intro")&&n.jsx(cp,{}),n.jsx(I1,{}),n.jsx(sj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(P1,{})})]})}function uu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?ij:r==="oasi"?mj:r==="studio"?hj:r==="pastel"?gj:r==="editorial"?bj:jj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(yj,{})})})}function jj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Rn,{})]})}function Nj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Sj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function wj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Sj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Ej(){return O.useEffect(()=>Uu(!0),[]),null}async function zj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Nj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=wj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Ej,{})]})),Uu(!0)}const kp=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:Cp})})):kp?zj(kp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-8IEW21oh.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,qb as S,Tj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-B8oylr_t.js b/solution/site/scripts/mockup/vendor/retired/index-B8oylr_t.js new file mode 100644 index 0000000..a8158d3 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-B8oylr_t.js @@ -0,0 +1,371 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const S0="modulepreload",w0=function(s){return"/"+s},Oh={},E0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=w0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":S0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function z0(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function T0(){return Rh||(Rh=1,$o.exports=z0()),$o.exports}var n=T0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function k0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,H={};function L(E,q,J){this.props=E,this.context=q,this.refs=H,this.updater=J||N}L.prototype.isReactComponent={},L.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=L.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=H,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,k(Z,L.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var Te=F===""?".":F+":";if(X(E))for(var ke=0;ke>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,k=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(M){if(k=!1,Z(M),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return H?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(x)&&u(x),Z(M)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){L(ce,0)};function ie(M,Q){Y=L(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(x)===null&&M===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(x,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function _0(){return Bh||(Bh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function C0(){if(qh)return xt;qh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=C0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function O0(){if(Yh)return Ds;Yh=1;var s=_0(),r=fu(),o=M0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function Te(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function ke(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Ln=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var ze=C(T,ee,A[me],B);if(ze===null){ee===null&&(ee=ye);break}e&&ee&&ze.alternate===null&&t(T,ee),z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze,ee=ye}if(me===A.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,ze.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),Ee===null?ne=ua:Ee.sibling=ua,Ee=ua,ee=ye}if(ze.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!ze.done;me++,ze=A.next())ze=$(T,ze.value,B),ze!==null&&(z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return je&&Sl(T,me),ne}for(ee=a(ee);!ze.done;me++,ze=A.next())ze=D(ee,T,me,ze.value,B),ze!==null&&(e&&ze.alternate!==null&&ee.delete(ze.key===null?me:ze.key),z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return e&&ee.forEach(function(N0){return t(T,N0)}),je&&Sl(T,me),ne}function Le(T,z,A,B){if(typeof A=="object"&&A!==null&&A.type===k&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var ne=A.key;z!==null;){if(z.key===ne){if(ne=A.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,A.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,A.props),is(B,A),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}A.type===k?(B=Na(A.props.children,T.mode,B,A.key),B.return=T,T=B):(B=hi(A.type,A.key,A.props,null,T.mode,B),is(B,A),B.return=T,T=B)}return h(T);case N:e:{for(ne=A.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===A.containerInfo&&z.stateNode.implementation===A.implementation){l(T,z.sibling),B=i(z,A.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(A,T.mode,B),B.return=T,T=B}return h(T);case W:return A=Ta(A),Le(T,z,A,B)}if(ie(A))return I(T,z,A,B);if(K(A)){if(ne=K(A),typeof ne!="function")throw Error(u(150));return A=ne.call(A),se(T,z,A,B)}if(typeof A.then=="function")return Le(T,z,ji(A),B);if(A.$$typeof===R)return Le(T,z,gi(T,A),B);Ni(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,A),B.return=T,T=B):(l(T,z),B=ac(A,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,A,B){try{ss=0;var ne=Le(T,z,A,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var Ee=Mt(29,ee,null,T.mode);return Ee.lanes=B,Ee.return=T,Ee}finally{}}}var Aa=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Cf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var Le=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(Le,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(Le,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Hc(e,!1,t,l);try{var S=i(),_=M.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Lt(e))}else ds(e,t,a,Lt(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Lt())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=kd(e).queue;Td(e,i,t,ae,l===null?gg:function(){return Ad(e),l(a)})}function kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=kd(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Lt())}function Lc(){return ut(As)}function _d(){return Je().memoizedState}function Cd(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Lt();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),He===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Dd(l,t,a),!0}return!1}function Hc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(_a){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(_a){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=He.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Li(t,t.updateQueue),qe(t),null);case 4:return ke(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Li(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Li(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Li(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return ke(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),ke();break;case 26:case 27:case 5:Oe(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ca(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++_===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bLe&&(h=Le,Le=se,se=h);var T=jf(b,se),z=jf(b,Le);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var A=$.createRange();A.setStart(T.node,T.offset),D.removeAllRanges(),se>Le?(D.addRange(A),D.extend(z.node,z.offset)):(A.setEnd(z.node,z.offset),D.addRange(A))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=vn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ps()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Hg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=$a(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Lg(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function a0(e){Ul.D(e),mh("dns-prefetch",e,null)}function n0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function s0(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function i0(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function r0(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function c0(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function o0(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||u0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function u0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function f0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function d0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function m0(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(h0,e),ar=null,lr.call(e))}function h0(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=O0(),Go.exports}var au=D0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=U0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),L0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>O.createElement("svg",{ref:x,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!L0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const we=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(B0,{ref:d,iconNode:r,className:Mp(`lucide-${R0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=we("arrow-up-right",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Y0=we("bed-double",$0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],X0=we("calendar-check",G0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],V0=we("calendar-days",Q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],K0=we("car",Z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=we("check",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=we("chevron-down",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=we("chevron-left",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=we("chevron-right",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],eb=we("clock",P0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],lb=we("cloud-rain",tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ab=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],nb=we("cloud-snow",ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],ib=we("cloud",sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],cb=we("copy",rb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ob=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ub=we("external-link",ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fb=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],db=we("instagram",fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],hb=we("leaf",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=we("mail",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=we("map-pin",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=we("menu",gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=we("message-circle",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M5 12h14",key:"1ays0h"}]],yb=we("minus",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=we("navigation",jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=we("phone",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],wb=we("play",Sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zb=we("plus",Eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],kb=we("rotate-ccw",Tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],_b=we("snowflake",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],Mb=we("sprout",Cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ob=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Rp=we("sun",Ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Db=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Rb=we("utensils",Db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ub=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=we("x",Ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Hb=we("youtube",Lb),Up=O.createContext(null);function Bb({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function qb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function $b(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Yb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Gb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Xb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Qb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,g]=O.useState(!1),[x,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),k=r.length;O.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const H=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;H();const X=()=>H(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,H]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const L=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(qb,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:L.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${L.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Yb,{}):n.jsx($b,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Gb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Xb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Qh(x.now)}${x.total?` / ${Qh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!L.lyrics,children:(L.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},Vb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Zb=[Vh.VERIFIED,Vh.CORRECTED];function Lp(s){return Zb.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Dj={PUBLISHED:3};function _n(s){return s.filter(r=>Lp(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function At(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Kb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Kb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Jb(s){return s.filter(r=>Lp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Fb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Wb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Ib(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Pb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function ev(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function tv(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function lv(s,r){const o=Fb[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:tv(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const av=1260,nv=60,sv="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function iv(s){const r=Kh(s.startTime??"")??Kh(sv)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??nv),x=u+m;if(x+g>av){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function rv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,g,x]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function cv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function ov(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function uv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!uv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??ov(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=At(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const fv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function dv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=At(u.facts,"room_intro")??At(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=At(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:dv(u.facts.filter(m=>!fv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:mv(u),prices:pv(u),href:`/${r.path}/${u.slug}`}})}function mv(s){var d,m;const r=At(s.facts,"price_range");if(r)return r;const o=Number((d=At(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=At(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const hv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function pv(s){return At(s.facts,"price_range")?[]:At(s.facts,"weekday_price")?hv.map(([r,o])=>({label:o,value:At(s.facts,r)??"문의"})):[]}function xv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function gv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function bv(s){return Jb(s.faqs)}function vv(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function yv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=lv(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function jv(s,r){return Cn(s,[r])[0]}const Nv=["reservation_required","reservation_channel"];function Sv(s){return Cn(s,Nv)}const wv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function Ev(s){return Cn(s,wv)}const zv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Tv(s){return Cn(s,zv)}const kv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function La(s){return Cn(s,kv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Cv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Mv(s){return xu(s.units).map(r=>{const o=At(r.facts,"standard_capacity"),u=At(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=At(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Mv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Cv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Ov(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return _v(s,Av)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Dv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Qb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Rv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Rv;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Uv(s){return Lv(s).join(" ")}function Lv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Hv=6e3,Bv=5;function qv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var k;return(k=N.alt)==null?void 0:k.trim()}).sort((N,k)=>Number(k.isPrimary)-Number(N.isPrimary)).slice(0,Bv),[x,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(k=>(k+N+g.length)%g.length),[g.length]);return O.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Hv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const k=j.current;if(j.current=null,k===null)return;const H=N.changedTouches[0].clientX-k;Math.abs(H)>40&&w(H<0?1:-1)},children:[g.map((N,k)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===x,className:`h-1.5 rounded-full bg-current transition-all ${k===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function $v(){const s=P(),{place:r,narrative:o}=s,u=La(s).slice(0,3),f=Mn(s),d=Fe(s),m=jv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Yv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Yv[s??""]??"default"}function Sr(){return Gp(P().theme.templateId)}const xr=5,nu=1.8,Gv=3;function Xv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function Vv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Gv),x=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Xv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Kv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Jv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Fv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Wv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of vv(s)){const m=Fv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:g||Wv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Iv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=La(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Pv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(Vv,{});if(r==="oasi")return n.jsx(Zv,{});if(r==="studio")return n.jsx(Kv,{});if(r==="pastel")return n.jsx(Jv,{});if(r==="editorial")return n.jsx(Iv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(qv,{});if(o==="hero.split")return n.jsx($v,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function ey(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function ty(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function ly(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function ay(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function ny(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function sy(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function ku({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const iy={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?ku:p==="editorial"?Nu:ry;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...iy[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ry({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function cy(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return cy(s)||Array.isArray(s)}function oy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!tp(g)||!tp(x)?g===x:Au(g,x)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function uy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function fy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function dy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=ap(d)&&ap(m);o[f]=g?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function my(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function hy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(H){if(!x)return;m||(m=H,o(),o());const L=H-m;for(m=H,g+=L;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function py(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:k,width:H}=N;return u?k:H}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Zp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function xy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,k,H,L,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",Te).add(De,"contextmenu",Te).add(De,"click",ke,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",Te).add(te,"mousemove",oe,V).add(te,"mouseup",Te)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(Cu(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return Te(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return Te(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function Te(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=fy(tt,jt),nl=K-10*It,Bt=L+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function ke(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function gy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,k=j/w;return w&&!N&&Ge(k)>.1?k:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function by(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function vy(s){function r(u){return s*(u/100)}return{measure:r}}function yy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(H){return f.measureSize(m.measure(H))}function w(H){if(!d)return;p=j(s),y=u.map(j);function L(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){H.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(H,G))&&L(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function jy(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=Cu(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function k(){return g}function H(){return m}function L(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:k,duration:N,velocity:H,seek:j,settled:w,useBaseFriction:G,useBaseDuration:L,useFriction:Z,useDuration:R};return X}function Ny(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Da(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",k=Ge(s[N]-r.get()),H=o.get()-r.get(),L=g.constrain(k/m);o.subtract(H*L),!w&&Ge(H){const{min:H,max:L}=d,G=d.constrain(N),R=!k,Z=Mu(o,k);return R?L:Z||p(H,G)?H:p(L,G)?L:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:k}=g;return m.slice(N,k)}return{snapsContained:x,scrollContainLimit:g}}function wy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function Ey(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Da(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function zy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ty(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function j(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return g(p).map(k=>k[0]).map((k,H)=>k+x[H])}return{snaps:p,snapsAligned:y}}function ky(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,k,H)=>{const L=!k,G=Mu(H,k);if(L){const R=al(H[0])+1;return np(R)}if(G){const R=Zs(d)-al(H)[0]+1;return np(R,al(H)[0])}return N})}return{slideRegistry:p}}function Ay(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((k,H)=>Ge(k)-Ge(H))[0]}function p(N){const k=s?m(N):g(N),H=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:L}=H[0];return{index:L,distance:k}}function y(N,k){const H=[N,N+o,N-o];if(!s)return N;if(!k)return x(H);const L=H.filter(G=>Cu(G)===k);return L.length?x(L):al(H)-o}function v(N,k){const H=r[N]-f.get(),L=y(H,k);return{index:N,distance:L}}function j(N,k){const H=f.get()+N,{index:L,distance:G}=p(H),R=!s&&d(H);if(!k||R)return{index:L,distance:N};const Z=r[L]-G,X=N+y(Z,0);return{index:L,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function _y(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Cy(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,H)=>{d.add(k,"focus",L=>{(wr(g)||g(w,L))&&N(H)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return _u(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=dy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function My(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=L().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function H(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Kp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function L(){const Y=m[0],W=N(v,Y);return H(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return H(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Oy(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Dy(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(k=>{const H=r.indexOf(k.target);f[H]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((k,H)=>{const L=parseInt(H),{isIntersecting:G}=f[L];return(N&&G||!N&&!G)&&k.push(L),k},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const k=v(N);return N&&(d=k),N||(m=k),k}return{init:p,destroy:y,get:j}}function Ry(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=k(),j=o.map(m),w=H();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function H(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Uy(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=_u(o);function w(L,G){return Gs(L).filter(R=>R%G===0).map(R=>L.slice(R,R+G))}function N(L){return L.length?Gs(L).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(L),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(L.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return L.slice(X,G)}):[]}function k(L){return j?w(L,o):N(L)}return{groupSlides:k}}function Ly(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:k,slidesToScroll:H,skipSnaps:L,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=by(),le=W.measure(r),xe=o.map(W.measure),ce=py(x,p),K=ce.measureSize(le),he=vy(K),Xe=my(g,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ry(ce,le,xe,o,M,f),E=Uy(ce,K,H,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ty(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=Sy(K,F,J,G,Y),oe=ie?re:J,{limit:Te}=wy(F,oe,v),ke=Zp(Zs(oe),y,v),at=ke.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:pa}},xa)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=pa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*xa+gt.get()*(1-xa);sl.set(Ps),pa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=hy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[ke.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=jy(It,Bt,nl,Pt,j,tt),Ln=Ay(v,oe,F,Te,Pt),Hn=_y(De,ke,at,gl,Ln,Pt,m),pt=zy(Te),Js=Qs(),Fs=Dy(r,o,m,k),{slideRegistry:Bn}=ky(ie,G,oe,fe,E,Oe),Ba=Cy(s,o,Bn,Hn,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:xy(ce,s,u,f,Pt,gy(ce,f),It,De,Hn,gl,Ln,ke,m,he,w,N,L,tt,X),eventStore:Js,percentOfView:he,index:ke,indexPrevious:at,limit:Te,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:yy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:Ny(Te,Bt,Pt,gl,he),scrollLooper:Ey(F,Te,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Ln,scrollTo:Hn,slideLooper:My(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Oy(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return qn}function Hy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const By={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function qy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function $y(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=qy(f),m=$y(d),g=Qs(),x=Hy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,k=ce;let H=!1,L,G=p(By,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Ly(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){H||(G=p(G,Oe),R=y(G),Z=te||Z,W(),L=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(L.translate.to(L.location.get()),L.animation.init(),L.slidesInView.init(),L.slideFocus.init(at),L.eventHandler.init(at),L.resizeHandler.init(at),L.slidesHandler.init(at),L.options.loop&&L.slideLooper.loop(),V.offsetParent&&Y.length&&L.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){L.dragHandler.destroy(),L.eventStore.clear(),L.translate.clear(),L.slideLooper.clear(),L.resizeHandler.destroy(),L.slidesHandler.destroy(),L.slidesInView.destroy(),L.animation.destroy(),m.destroy(),g.clear()}function he(){H||(H=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||H||(L.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),L.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=L.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=L.index.add(-1).get();Xe(te,Oe,1)}function Q(){return L.index.add(1).get()!==E()}function ae(){return L.index.add(-1).get()!==E()}function pe(){return L.scrollSnapList}function Ne(){return L.scrollProgress.get(L.offsetLocation.get())}function E(){return L.index.get()}function q(){return L.indexPrevious.get()}function J(){return L.slidesInView.get()}function F(){return L.slidesInView.get(!1)}function re(){return X}function fe(){return L}function oe(){return s}function Te(){return V}function ke(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:Te,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:ke,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,g]=O.useState(),x=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Au(o.current,s)||(o.current=s,x())},[s,x]),O.useEffect(()=>{uy(u.current,r)||(u.current=r,x())},[r,x]),O.useEffect(()=>{if(oy()&&m){br.globalOptions=Ou.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=k=>{const H=k.target;!(H instanceof Element)||!H.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Yy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Wp=O.createContext(null);function Ha({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Jp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,k]=O.useState([]),[H,L]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{L(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{k(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(x);le.current=x;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Wp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===H,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===H?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[H+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=O.useContext(Wp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Hl,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Gy(){const s=P(),{narrative:r,place:o}=s,u=yv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Xy={spr:Mb,sum:Rp,aut:hb,win:_b},Qy={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function Vy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Zy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(Ha,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[150px]",children:n.jsx(Ky,{post:o})},o.postId))})})}function Ky({post:s}){const{month:r,day:o,weekday:u}=Zy(s.publishedAt),f=Vy(r),d=Xy[f],m=Qy[f];return n.jsxs("article",{className:"tpl-border relative isolate flex h-full flex-col overflow-hidden rounded border border-dashed p-4",style:{background:`linear-gradient(165deg, color-mix(in srgb, ${m} 15%, var(--tpl-card, #efe7d3)) 0%, var(--tpl-card, #efe7d3) 62%)`,borderColor:`color-mix(in srgb, ${m} 32%, var(--tpl-border, #d6d3d1))`},children:[n.jsx("span",{"aria-hidden":!0,className:"absolute -top-[5px] left-1/2 size-[9px] -translate-x-1/2 rounded-full border",style:{backgroundColor:"var(--tpl-surface, #fafafa)",borderColor:"var(--tpl-border, #d6d3d1)"}}),n.jsx(d,{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-4 -right-4 z-0 size-20 opacity-[0.16]",style:{color:m}}),n.jsxs("time",{dateTime:s.publishedAt,className:"relative z-[1] mb-2.5 block text-center",children:[n.jsx("span",{className:"mx-auto mb-1 flex size-[22px] items-center justify-center rounded-full",style:{backgroundColor:`color-mix(in srgb, ${m} 24%, transparent)`,color:m},children:n.jsx(d,{"aria-hidden":!0,className:"size-3.5"})}),n.jsxs("span",{className:"text-muted block text-[length:var(--fs-xs)] tracking-wide",children:[r,"월"]}),n.jsx("span",{className:"serif block text-[28px] font-bold leading-none",style:{color:m},children:o}),n.jsx("span",{className:"text-muted mt-0.5 block text-[10.5px]",children:u})]}),n.jsx("p",{className:"relative z-[1] line-clamp-5 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body}),n.jsx("span",{className:"sr-only",children:Su(s.publishedAt)})]})}const Jy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Jy.has(s.value.trim()),Fy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Wy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Uv(s),f=s.links.filter(N=>{var k,H,L;return N.confirmed&&[(k=N.stayGuide)==null?void 0:k.policy,(H=N.stayGuide)==null?void 0:H.service,(L=N.stayGuide)==null?void 0:L.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var k;return((k=N.stayGuide)==null?void 0:k.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Fy.has(N.label)||d.some(k=>k.key===N.key&&k.group==="rules"),p=f.map(N=>{var k;return((k=N.stayGuide)==null?void 0:k.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(e1,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(t1,{text:N},N.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Iy="#16a34a",Py="#e04b25";function e1({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Iy:Py;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function t1({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const l1="/v1/site/booking-request";function a1({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,g]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(l1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function n1(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=fp(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function i1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=At(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>i1(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>s1(o),[o]),[f,d]=O.useState(null),[m,g]=O.useState(0);O.useEffect(()=>d(new Date),[]);const x=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&x?n1(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,k]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[H,L]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{L(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(V0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(r1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${H}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${H}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(up,K+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(eb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>L(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(yb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[H,"명"]}),n.jsx("button",{type:"button",onClick:()=>L(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(zb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${H}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function r1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(kb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(a1,{stay:o,guests:u})]})}function c1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function o1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function u1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function f1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function d1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function m1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(ku,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function h1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(p1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function p1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),g=Sr();if(g==="reservation")return n.jsx(u1,{});if(g==="oasi")return n.jsx(f1,{});if(g==="studio")return n.jsx(d1,{});if(g==="pastel")return n.jsx(m1,{});if(g==="editorial")return n.jsx(h1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(c1,{});if(x==="rooms.tabs")return n.jsx(o1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(x1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function x1({images:s,name:r}){return n.jsx(Ha,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function g1(){const s=P(),r=Fe(s),o=Sv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(X0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Y0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function b1(){const s=P(),r=Ev(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function v1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function y1(){const s=P(),r=Tv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function j1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(rv()),[]),s}const N1=["봄","여름","가을","겨울"];function S1(){const s=P(),r=s.local.festivals,o=j1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=N1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Ha,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:ey(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function w1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:w1(s.distanceText)}function E1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=hp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:Rb,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function z1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(z1,{icon:r,children:s}),n.jsx(Ha,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:ep(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function T1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function k1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:T1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function A1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,g=o!=null&&o.length?xp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const _1={맑음:Rp,흐림:ib,비:lb,눈:nb};function C1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function M1(){var v,j,w,N,k;const s=P(),r=k1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=xv((r==null?void 0:r.condition)??""),u=gv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=A1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=C1(r.observedAt),y=_1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function O1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),g=O.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const x=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&g(-1),k.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(Ha,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(gp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=sy(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:ny(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(cb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:ly(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(K0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function D1(){const s=P(),r=bv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===Vb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(ub,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function R1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=O.useContext(tx),p=g==="reservation"?Eu:g==="oasi"?zu:g==="studio"?Tu:g==="pastel"?ku:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Ha,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:ty(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Hb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function U1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(L1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function L1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function H1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Ls=318,Tn=168,jp=34,B1=16,Np=4;function rx(s,r,o){const u=Ll*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function q1(s){if(s.length<2)return 15;for(let r=B1;r>Np;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ls-jp*2&&f<=Tn-jp*2)return r}return Np}function $1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!Y1(f,g)?f:void 0}),f=g)}),u}function Y1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function G1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function X1(s){return s.from?ay(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function Q1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=$1(s,o),d=q1(f),m=G1(f.map(N=>rx(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Ls/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Ll);N<=Math.floor((p+Ls)/Ll);N+=1)for(let k=Math.floor(y/Ll);k<=Math.floor((y+Tn)/Ll);k+=1){if(k<0||k>=v)continue;const H=(N%v+v)%v;j.push({key:`${N}-${k}`,url:`https://tile.openstreetmap.org/${d}/${H}/${k}.png`,left:N*Ll-p,top:k*Ll-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ls,height:Tn,viewBox:`0 0 ${Ls} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,k)=>{const H=m[k];return n.jsx("a",{href:X1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:H.x-p,top:H.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function V1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function Z1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=iv({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",V1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(Q1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(R1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function K1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(J1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function J1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),g=O.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(Z1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Yy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Wb(y.url),w=Ib(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:ev(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{j&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Pb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(wb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const W1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},I1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function P1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=I1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",W1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const ej={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&ej[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function tj(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=H=>{H.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?wp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const lj={songs:lx,daily:U1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:H1,itinerary:K1,video:F1,event:tj,story:P1},aj="/v1/site/review",nj="/v1/site/reviews",Ep=5,zp=500;function sj(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,g]=O.useState(""),[x,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,k=O.useCallback(async()=>{try{const G=await fetch(`${nj}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),k()},[k]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function H(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(aj,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const L=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),L>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:L},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:H,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function ij(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",rj="#efe7d3",Tp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function cj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const oj="/v1/image/relay?url=";async function uj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${oj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function fj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function kp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=fj();d.clearRect(0,0,m,m),d.fillStyle=rj,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await uj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,H=m-mt-ou,L=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(H,k),d.lineTo(H,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,L),R=G.slice(0,Hs);if(G.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>L;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=H+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${g}`;const X=cj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function dj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[g,x]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{kp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>kp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Hs):!0}function H(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function L(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await H();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}L(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Ha,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void H().then(R=>R&&L(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function mj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(xj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(gj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Ht(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const hj=24,pj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function xj(){const s=P(),r=ux(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>hj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:pj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function gj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const bj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,vj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function yj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...La(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var k;return N.enabled&&((k=N.name)==null?void 0:k.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:vj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:bj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,k)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function jj({children:s}){var j,w,N,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=La(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(H=>H.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(H=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:H.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:H.value})]},H.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(H=>n.jsx("li",{children:n.jsx("a",{href:H.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:H.label})},H.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const Nj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,Sj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function wj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:Sj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Nj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(db,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function Ej({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Xp(),d=zj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function zj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function Tj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Gy,info:Wy,rooms:Io,menu:Io,programs:Io,booking:r?dp:g1,space:b1,inquiry:v1,exhibition:y1,photos:O1,festival:S1,local:E1,weather:M1,map:bp,faq:D1,...lj},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Pv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Ht(s,"map")&&n.jsx(bp,{}),r&&!Ov(s,"booking")&&n.jsx(dp,{}),!Ht(s,"intro")&&n.jsx(cp,{}),n.jsx(sj,{}),n.jsx(dj,{}),Ht(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ij,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?mj:r==="oasi"?yj:r==="studio"?jj:r==="pastel"?wj:r==="editorial"?Ej:kj;return n.jsx(Bb,{payload:s,children:n.jsx(o,{children:n.jsx(Tj,{})})})}function kj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Dv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Aj(s){const{colors:r,look:o}=s.theme,u=cv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const _j=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Cj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${_j.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Mj(){return O.useEffect(()=>Uu(!0),[]),null}async function Oj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Aj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Cj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Mj,{})]})),Uu(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:_p})})):Cp?Oj(Cp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):E0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-8VRz5Okc.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,Vb as S,Dj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-BFPrDLsc.js b/solution/site/scripts/mockup/vendor/retired/index-BFPrDLsc.js new file mode 100644 index 0000000..7c73f9f --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-BFPrDLsc.js @@ -0,0 +1,371 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Oh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function E0(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function z0(){return Rh||(Rh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function T0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,H={};function L(E,q,J){this.props=E,this.context=q,this.refs=H,this.updater=J||N}L.prototype.isReactComponent={},L.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=L.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=H,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,k(Z,L.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var Te=F===""?".":F+":";if(X(E))for(var ke=0;ke>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,k=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(M){if(k=!1,Z(M),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return H?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(x)&&u(x),Z(M)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){L(ce,0)};function ie(M,Q){Y=L(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(x)===null&&M===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(x,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function A0(){return Bh||(Bh=1,Xo.exports=k0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function _0(){if(qh)return xt;qh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=_0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function M0(){if(Yh)return Ds;Yh=1;var s=A0(),r=fu(),o=C0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function Te(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function ke(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Ln=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var ze=C(T,ee,A[me],B);if(ze===null){ee===null&&(ee=ye);break}e&&ee&&ze.alternate===null&&t(T,ee),z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze,ee=ye}if(me===A.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,ze.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),Ee===null?ne=ua:Ee.sibling=ua,Ee=ua,ee=ye}if(ze.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!ze.done;me++,ze=A.next())ze=$(T,ze.value,B),ze!==null&&(z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return je&&Sl(T,me),ne}for(ee=a(ee);!ze.done;me++,ze=A.next())ze=D(ee,T,me,ze.value,B),ze!==null&&(e&&ze.alternate!==null&&ee.delete(ze.key===null?me:ze.key),z=c(ze,z,me),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function Le(T,z,A,B){if(typeof A=="object"&&A!==null&&A.type===k&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var ne=A.key;z!==null;){if(z.key===ne){if(ne=A.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,A.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,A.props),is(B,A),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}A.type===k?(B=Na(A.props.children,T.mode,B,A.key),B.return=T,T=B):(B=hi(A.type,A.key,A.props,null,T.mode,B),is(B,A),B.return=T,T=B)}return h(T);case N:e:{for(ne=A.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===A.containerInfo&&z.stateNode.implementation===A.implementation){l(T,z.sibling),B=i(z,A.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(A,T.mode,B),B.return=T,T=B}return h(T);case W:return A=Ta(A),Le(T,z,A,B)}if(ie(A))return I(T,z,A,B);if(K(A)){if(ne=K(A),typeof ne!="function")throw Error(u(150));return A=ne.call(A),se(T,z,A,B)}if(typeof A.then=="function")return Le(T,z,ji(A),B);if(A.$$typeof===R)return Le(T,z,gi(T,A),B);Ni(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,A),B.return=T,T=B):(l(T,z),B=ac(A,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,A,B){try{ss=0;var ne=Le(T,z,A,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var Ee=Mt(29,ee,null,T.mode);return Ee.lanes=B,Ee.return=T,Ee}finally{}}}var Aa=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Cf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var Le=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(Le,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(Le,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Hc(e,!1,t,l);try{var S=i(),_=M.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);ds(e,t,U,Lt(e))}else ds(e,t,a,Lt(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Lt())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=kd(e).queue;Td(e,i,t,ae,l===null?xg:function(){return Ad(e),l(a)})}function kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=kd(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Lt())}function Lc(){return ut(As)}function _d(){return Je().memoizedState}function Cd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Lt();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),He===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Dd(l,t,a),!0}return!1}function Hc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(_a){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(_a){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=He.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Li(t,t.updateQueue),qe(t),null);case 4:return ke(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Li(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Li(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Li(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return ke(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),ke();break;case 26:case 27:case 5:Oe(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ca(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++_===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bLe&&(h=Le,Le=se,se=h);var T=jf(b,se),z=jf(b,Le);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var A=$.createRange();A.setStart(T.node,T.offset),D.removeAllRanges(),se>Le?(D.addRange(A),D.extend(z.node,z.offset)):(A.setEnd(z.node,z.offset),D.addRange(A))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=vn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ps()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=$a(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),mh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(m0,e),ar=null,lr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var L0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>O.createElement("svg",{ref:x,...L0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!U0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const we=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(H0,{ref:d,iconNode:r,className:Mp(`lucide-${D0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=we("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=we("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=we("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=we("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=we("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=we("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=we("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=we("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=we("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=we("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=we("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=we("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=we("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=we("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=we("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=we("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],mb=we("leaf",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=we("mail",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=we("map-pin",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=we("menu",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=we("message-circle",gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["path",{d:"M5 12h14",key:"1ays0h"}]],vb=we("minus",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=we("navigation",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=we("phone",jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Sb=we("play",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Eb=we("plus",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Tb=we("rotate-ccw",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],Ab=we("snowflake",kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _b=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],Cb=we("sprout",_b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Rp=we("sun",Mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ob=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Db=we("utensils",Ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=we("x",Rb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ub=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Lb=we("youtube",Ub),Up=O.createContext(null);function Hb({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Bb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function qb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function $b(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Yb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Gb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Xb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,g]=O.useState(!1),[x,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),k=r.length;O.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const H=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;H();const X=()=>H(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,H]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const L=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Bb,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:L.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${L.title}`,onClick:()=>f?R():G(),children:f?n.jsx($b,{}):n.jsx(qb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Yb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Gb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Qh(x.now)}${x.total?` / ${Qh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!L.lyrics,children:(L.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},Qb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Vb=[Vh.VERIFIED,Vh.CORRECTED];function Lp(s){return Vb.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Oj={PUBLISHED:3};function _n(s){return s.filter(r=>Lp(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function At(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Zb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Zb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Kb(s){return s.filter(r=>Lp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Jb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Fb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Wb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Ib(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Pb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function ev(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function tv(s,r){const o=Jb[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:ev(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const lv=1260,av=60,nv="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function sv(s){const r=Kh(s.startTime??"")??Kh(nv)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??av),x=u+m;if(x+g>lv){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function iv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,g,x]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function rv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function cv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function ov(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!ov(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??cv(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=At(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const uv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function fv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=At(u.facts,"room_intro")??At(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=At(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:fv(u.facts.filter(m=>!uv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:dv(u),prices:hv(u),href:`/${r.path}/${u.slug}`}})}function dv(s){var d,m;const r=At(s.facts,"price_range");if(r)return r;const o=Number((d=At(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=At(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const mv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function hv(s){return At(s.facts,"price_range")?[]:At(s.facts,"weekday_price")?mv.map(([r,o])=>({label:o,value:At(s.facts,r)??"문의"})):[]}function pv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function xv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function gv(s){return Kb(s.faqs)}function bv(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function vv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=tv(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function yv(s,r){return Cn(s,[r])[0]}const jv=["reservation_required","reservation_channel"];function Nv(s){return Cn(s,jv)}const Sv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function wv(s){return Cn(s,Sv)}const Ev=["operating_hours","session_times","closed_days","age_limit","guide_language"];function zv(s){return Cn(s,Ev)}const Tv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function La(s){return Cn(s,Tv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,_v=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Cv(s){return xu(s.units).map(r=>{const o=At(r.facts,"standard_capacity"),u=At(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=At(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Cv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,_v),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Mv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Av(s,kv)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Ov(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Xb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Dv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Dv;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Rv(s){return Uv(s).join(" ")}function Uv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Lv=6e3,Hv=5;function Bv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var k;return(k=N.alt)==null?void 0:k.trim()}).sort((N,k)=>Number(k.isPrimary)-Number(N.isPrimary)).slice(0,Hv),[x,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(k=>(k+N+g.length)%g.length),[g.length]);return O.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Lv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const k=j.current;if(j.current=null,k===null)return;const H=N.changedTouches[0].clientX-k;Math.abs(H)>40&&w(H<0?1:-1)},children:[g.map((N,k)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===x,className:`h-1.5 rounded-full bg-current transition-all ${k===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function qv(){const s=P(),{place:r,narrative:o}=s,u=La(s).slice(0,3),f=Mn(s),d=Fe(s),m=yv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const $v={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return $v[s??""]??"default"}function Sr(){return Gp(P().theme.templateId)}const xr=5,nu=1.8,Yv=3;function Gv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Xv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function Qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Yv),x=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Gv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Zv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Kv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Jv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Fv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of bv(s)){const m=Jv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:g||Fv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Wv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=La(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Iv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(Qv,{});if(r==="oasi")return n.jsx(Vv,{});if(r==="studio")return n.jsx(Zv,{});if(r==="pastel")return n.jsx(Kv,{});if(r==="editorial")return n.jsx(Wv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Bv,{});if(o==="hero.split")return n.jsx(qv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Pv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function ey(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function ty(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function ly(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function ay(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ny(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function ku({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const sy={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?ku:p==="editorial"?Nu:iy;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...sy[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function iy({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ry(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ry(s)||Array.isArray(s)}function cy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!tp(g)||!tp(x)?g===x:Au(g,x)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function oy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function uy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function fy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=ap(d)&&ap(m);o[f]=g?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function dy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function my(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(H){if(!x)return;m||(m=H,o(),o());const L=H-m;for(m=H,g+=L;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function hy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:k,width:H}=N;return u?k:H}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Zp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function py(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,k,H,L,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",Te).add(De,"contextmenu",Te).add(De,"click",ke,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",Te).add(te,"mousemove",oe,V).add(te,"mouseup",Te)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(Cu(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return Te(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return Te(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function Te(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=uy(tt,jt),nl=K-10*It,Bt=L+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function ke(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function xy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,k=j/w;return w&&!N&&Ge(k)>.1?k:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function gy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function by(s){function r(u){return s*(u/100)}return{measure:r}}function vy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(H){return f.measureSize(m.measure(H))}function w(H){if(!d)return;p=j(s),y=u.map(j);function L(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){H.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(H,G))&&L(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function yy(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=Cu(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function k(){return g}function H(){return m}function L(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:k,duration:N,velocity:H,seek:j,settled:w,useBaseFriction:G,useBaseDuration:L,useFriction:Z,useDuration:R};return X}function jy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Da(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",k=Ge(s[N]-r.get()),H=o.get()-r.get(),L=g.constrain(k/m);o.subtract(H*L),!w&&Ge(H){const{min:H,max:L}=d,G=d.constrain(N),R=!k,Z=Mu(o,k);return R?L:Z||p(H,G)?H:p(L,G)?L:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:k}=g;return m.slice(N,k)}return{snapsContained:x,scrollContainLimit:g}}function Sy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function wy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Da(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function Ey(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function zy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function j(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return g(p).map(k=>k[0]).map((k,H)=>k+x[H])}return{snaps:p,snapsAligned:y}}function Ty(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,k,H)=>{const L=!k,G=Mu(H,k);if(L){const R=al(H[0])+1;return np(R)}if(G){const R=Zs(d)-al(H)[0]+1;return np(R,al(H)[0])}return N})}return{slideRegistry:p}}function ky(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((k,H)=>Ge(k)-Ge(H))[0]}function p(N){const k=s?m(N):g(N),H=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:L}=H[0];return{index:L,distance:k}}function y(N,k){const H=[N,N+o,N-o];if(!s)return N;if(!k)return x(H);const L=H.filter(G=>Cu(G)===k);return L.length?x(L):al(H)-o}function v(N,k){const H=r[N]-f.get(),L=y(H,k);return{index:N,distance:L}}function j(N,k){const H=f.get()+N,{index:L,distance:G}=p(H),R=!s&&d(H);if(!k||R)return{index:L,distance:N};const Z=r[L]-G,X=N+y(Z,0);return{index:L,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function Ay(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function _y(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,H)=>{d.add(k,"focus",L=>{(wr(g)||g(w,L))&&N(H)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return _u(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=fy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function Cy(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=L().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function H(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Kp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function L(){const Y=m[0],W=N(v,Y);return H(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return H(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function My(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Oy(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(k=>{const H=r.indexOf(k.target);f[H]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((k,H)=>{const L=parseInt(H),{isIntersecting:G}=f[L];return(N&&G||!N&&!G)&&k.push(L),k},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const k=v(N);return N&&(d=k),N||(m=k),k}return{init:p,destroy:y,get:j}}function Dy(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=k(),j=o.map(m),w=H();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function H(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Ry(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=_u(o);function w(L,G){return Gs(L).filter(R=>R%G===0).map(R=>L.slice(R,R+G))}function N(L){return L.length?Gs(L).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(L),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(L.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return L.slice(X,G)}):[]}function k(L){return j?w(L,o):N(L)}return{groupSlides:k}}function Uy(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:k,slidesToScroll:H,skipSnaps:L,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=gy(),le=W.measure(r),xe=o.map(W.measure),ce=hy(x,p),K=ce.measureSize(le),he=by(K),Xe=dy(g,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Dy(ce,le,xe,o,M,f),E=Ry(ce,K,H,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=zy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=Ny(K,F,J,G,Y),oe=ie?re:J,{limit:Te}=Sy(F,oe,v),ke=Zp(Zs(oe),y,v),at=ke.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:pa}},xa)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=pa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*xa+gt.get()*(1-xa);sl.set(Ps),pa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=my(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[ke.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=yy(It,Bt,nl,Pt,j,tt),Ln=ky(v,oe,F,Te,Pt),Hn=Ay(De,ke,at,gl,Ln,Pt,m),pt=Ey(Te),Js=Qs(),Fs=Oy(r,o,m,k),{slideRegistry:Bn}=Ty(ie,G,oe,fe,E,Oe),Ba=_y(s,o,Bn,Hn,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:py(ce,s,u,f,Pt,xy(ce,f),It,De,Hn,gl,Ln,ke,m,he,w,N,L,tt,X),eventStore:Js,percentOfView:he,index:ke,indexPrevious:at,limit:Te,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:vy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:jy(Te,Bt,Pt,gl,he),scrollLooper:wy(F,Te,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Ln,scrollTo:Hn,slideLooper:Cy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:My(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return qn}function Ly(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Hy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function By(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function qy(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=By(f),m=qy(d),g=Qs(),x=Ly(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,k=ce;let H=!1,L,G=p(Hy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Uy(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){H||(G=p(G,Oe),R=y(G),Z=te||Z,W(),L=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(L.translate.to(L.location.get()),L.animation.init(),L.slidesInView.init(),L.slideFocus.init(at),L.eventHandler.init(at),L.resizeHandler.init(at),L.slidesHandler.init(at),L.options.loop&&L.slideLooper.loop(),V.offsetParent&&Y.length&&L.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){L.dragHandler.destroy(),L.eventStore.clear(),L.translate.clear(),L.slideLooper.clear(),L.resizeHandler.destroy(),L.slidesHandler.destroy(),L.slidesInView.destroy(),L.animation.destroy(),m.destroy(),g.clear()}function he(){H||(H=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||H||(L.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),L.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=L.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=L.index.add(-1).get();Xe(te,Oe,1)}function Q(){return L.index.add(1).get()!==E()}function ae(){return L.index.add(-1).get()!==E()}function pe(){return L.scrollSnapList}function Ne(){return L.scrollProgress.get(L.offsetLocation.get())}function E(){return L.index.get()}function q(){return L.indexPrevious.get()}function J(){return L.slidesInView.get()}function F(){return L.slidesInView.get(!1)}function re(){return X}function fe(){return L}function oe(){return s}function Te(){return V}function ke(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:Te,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:ke,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,g]=O.useState(),x=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Au(o.current,s)||(o.current=s,x())},[s,x]),O.useEffect(()=>{oy(u.current,r)||(u.current=r,x())},[r,x]),O.useEffect(()=>{if(cy()&&m){br.globalOptions=Ou.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=k=>{const H=k.target;!(H instanceof Element)||!H.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function $y(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function Ha({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Jp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,k]=O.useState([]),[H,L]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{L(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{k(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(x);le.current=x;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===H,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===H?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[H+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Hl,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Yy(){const s=P(),{narrative:r,place:o}=s,u=vv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Gy={spr:Cb,sum:Rp,aut:mb,win:Ab},Xy={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function Qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Vy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(Ha,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[150px]",children:n.jsx(Zy,{post:o})},o.postId))})})}function Zy({post:s}){const{month:r,day:o,weekday:u}=Vy(s.publishedAt),f=Qy(r),d=Gy[f],m=Xy[f];return n.jsxs("article",{className:"tpl-border relative isolate flex h-full flex-col overflow-hidden rounded border border-dashed p-4",style:{background:`linear-gradient(165deg, color-mix(in srgb, ${m} 15%, var(--tpl-card, #efe7d3)) 0%, var(--tpl-card, #efe7d3) 62%)`,borderColor:`color-mix(in srgb, ${m} 32%, var(--tpl-border, #d6d3d1))`},children:[n.jsx("span",{"aria-hidden":!0,className:"absolute -top-[5px] left-1/2 size-[9px] -translate-x-1/2 rounded-full border",style:{backgroundColor:"var(--tpl-surface, #fafafa)",borderColor:"var(--tpl-border, #d6d3d1)"}}),n.jsx(d,{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-4 -right-4 z-0 size-20 opacity-[0.16]",style:{color:m}}),n.jsxs("time",{dateTime:s.publishedAt,className:"relative z-[1] mb-2.5 block text-center",children:[n.jsx("span",{className:"mx-auto mb-1 flex size-[22px] items-center justify-center rounded-full",style:{backgroundColor:`color-mix(in srgb, ${m} 24%, transparent)`,color:m},children:n.jsx(d,{"aria-hidden":!0,className:"size-3.5"})}),n.jsxs("span",{className:"text-muted block text-[length:var(--fs-xs)] tracking-wide",children:[r,"월"]}),n.jsx("span",{className:"serif block text-[28px] font-bold leading-none",style:{color:m},children:o}),n.jsx("span",{className:"text-muted mt-0.5 block text-[10.5px]",children:u})]}),n.jsx("p",{className:"relative z-[1] line-clamp-5 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body}),n.jsx("span",{className:"sr-only",children:Su(s.publishedAt)})]})}const Ky=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Ky.has(s.value.trim()),Jy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Fy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Rv(s),f=s.links.filter(N=>{var k,H,L;return N.confirmed&&[(k=N.stayGuide)==null?void 0:k.policy,(H=N.stayGuide)==null?void 0:H.service,(L=N.stayGuide)==null?void 0:L.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var k;return((k=N.stayGuide)==null?void 0:k.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Jy.has(N.label)||d.some(k=>k.key===N.key&&k.group==="rules"),p=f.map(N=>{var k;return((k=N.stayGuide)==null?void 0:k.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Py,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(e1,{text:N},N.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Wy="#16a34a",Iy="#e04b25";function Py({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Wy:Iy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function e1({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const t1="/v1/site/booking-request";function l1({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,g]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(t1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function a1(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=fp(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function s1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=At(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>s1(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>n1(o),[o]),[f,d]=O.useState(null),[m,g]=O.useState(0);O.useEffect(()=>d(new Date),[]);const x=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&x?a1(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,k]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[H,L]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{L(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(i1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${H}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${H}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(up,K+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>L(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(vb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[H,"명"]}),n.jsx("button",{type:"button",onClick:()=>L(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Eb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${H}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function i1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Tb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(l1,{stay:o,guests:u})]})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function c1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function o1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function u1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function f1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function d1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(ku,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function m1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(h1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function h1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),g=Sr();if(g==="reservation")return n.jsx(o1,{});if(g==="oasi")return n.jsx(u1,{});if(g==="studio")return n.jsx(f1,{});if(g==="pastel")return n.jsx(d1,{});if(g==="editorial")return n.jsx(m1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(r1,{});if(x==="rooms.tabs")return n.jsx(c1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(p1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function p1({images:s,name:r}){return n.jsx(Ha,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function x1(){const s=P(),r=Fe(s),o=Nv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function g1(){const s=P(),r=wv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function b1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function v1(){const s=P(),r=zv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function y1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(iv()),[]),s}const j1=["봄","여름","가을","겨울"];function N1(){const s=P(),r=s.local.festivals,o=y1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=j1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Ha,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Pv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function S1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:S1(s.distanceText)}function w1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=hp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:Db,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function E1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(E1,{icon:r,children:s}),n.jsx(Ha,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:ep(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function z1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function T1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:z1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function k1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,g=o!=null&&o.length?xp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const A1={맑음:Rp,흐림:sb,비:tb,눈:ab};function _1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function C1(){var v,j,w,N,k;const s=P(),r=T1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=pv((r==null?void 0:r.condition)??""),u=xv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=k1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=_1(r.observedAt),y=A1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function M1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),g=O.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const x=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&g(-1),k.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(Ha,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(gp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=ny(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:ay(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:ty(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function O1(){const s=P(),r=gv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===Qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function D1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=O.useContext(ex),p=g==="reservation"?Eu:g==="oasi"?zu:g==="studio"?Tu:g==="pastel"?ku:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Ha,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:ey(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Lb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function R1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(U1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function U1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function L1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Ls=318,Tn=168,jp=34,H1=16,Np=4;function ix(s,r,o){const u=Ll*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function B1(s){if(s.length<2)return 15;for(let r=H1;r>Np;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ls-jp*2&&f<=Tn-jp*2)return r}return Np}function q1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!$1(f,g)?f:void 0}),f=g)}),u}function $1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function Y1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function G1(s){return s.from?ly(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function X1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=q1(s,o),d=B1(f),m=Y1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Ls/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Ll);N<=Math.floor((p+Ls)/Ll);N+=1)for(let k=Math.floor(y/Ll);k<=Math.floor((y+Tn)/Ll);k+=1){if(k<0||k>=v)continue;const H=(N%v+v)%v;j.push({key:`${N}-${k}`,url:`https://tile.openstreetmap.org/${d}/${H}/${k}.png`,left:N*Ll-p,top:k*Ll-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ls,height:Tn,viewBox:`0 0 ${Ls} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,k)=>{const H=m[k];return n.jsx("a",{href:G1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:H.x-p,top:H.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function Q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function V1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=sv({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",Q1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(X1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(D1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Z1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(K1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function K1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),g=O.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(V1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>$y(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Fb(y.url),w=Wb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Pb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{j&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Ib(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(Sb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const F1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},W1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function I1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=W1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",F1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const P1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&P1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function ej(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=H=>{H.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?wp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const tj={songs:tx,daily:R1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:L1,itinerary:Z1,video:J1,event:ej,story:I1},lj="/v1/site/review",aj="/v1/site/reviews",Ep=5,zp=500;function nj(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,g]=O.useState(""),[x,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,k=O.useCallback(async()=>{try{const G=await fetch(`${aj}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),k()},[k]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function H(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(lj,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const L=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),L>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:L},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:H,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function sj(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",ij="#efe7d3",Tp="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function rj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const cj="/v1/image/relay?url=";async function oj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${cj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function uj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function kp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=uj();d.clearRect(0,0,m,m),d.fillStyle=ij,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await oj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,H=m-mt-ou,L=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(H,k),d.lineTo(H,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,L),R=G.slice(0,Hs);if(G.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>L;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=H+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${g}`;const X=rj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function fj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[g,x]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{kp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>kp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function H(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function L(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await H();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}L(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Ha,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void H().then(R=>R&&L(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function dj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(pj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(xj,{}),n.jsx(Rn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Ht(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const mj=24,hj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function pj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>mj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:hj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function xj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const gj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,bj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function vj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...La(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var k;return N.enabled&&((k=N.name)==null?void 0:k.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:bj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:gj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,k)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj({children:s}){var j,w,N,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=La(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(H=>H.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(H=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:H.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:H.value})]},H.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(H=>n.jsx("li",{children:n.jsx("a",{href:H.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:H.label})},H.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const jj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,Nj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function Sj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:Nj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:jj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Rn,{})]})}function wj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Xp(),d=Ej(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function Ej(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function zj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Yy,info:Fy,rooms:Io,menu:Io,programs:Io,booking:r?dp:x1,space:g1,inquiry:b1,exhibition:v1,photos:M1,festival:N1,local:w1,weather:C1,map:bp,faq:O1,...tj},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Iv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Ht(s,"map")&&n.jsx(bp,{}),r&&!Mv(s,"booking")&&n.jsx(dp,{}),!Ht(s,"intro")&&n.jsx(cp,{}),n.jsx(nj,{}),n.jsx(fj,{}),Ht(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(sj,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?dj:r==="oasi"?vj:r==="studio"?yj:r==="pastel"?Sj:r==="editorial"?wj:Tj;return n.jsx(Hb,{payload:s,children:n.jsx(o,{children:n.jsx(zj,{})})})}function Tj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Ov,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Rn,{})]})}function kj(s){const{colors:r,look:o}=s.theme,u=rv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Aj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function _j(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Aj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Cj(){return O.useEffect(()=>Uu(!0),[]),null}async function Mj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(kj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=_j(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Cj,{})]})),Uu(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:_p})})):Cp?Mj(Cp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-BnKwx86x.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,Qb as S,Oj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-BFQ2aqwt.js b/solution/site/scripts/mockup/vendor/retired/index-BFQ2aqwt.js new file mode 100644 index 0000000..26e91af --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-BFQ2aqwt.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Oh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function E0(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function z0(){return Rh||(Rh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function T0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(g)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function _0(){return Bh||(Bh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function C0(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=C0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function M0(){if(Yh)return Os;Yh=1;var s=_0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,La=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,zr=Math.log,Tr=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ba=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{qr=!1}var Yl=null,$r=null,ai=null;function lf(){if(ai)return ai;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Fa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ai=$r=Yl=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Fr=null,Pn=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Wa==null||Wa!==ti(a)||(a=Wa,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function rs(){if(vc){var e=rn;if(e!==null)throw e}}function cs(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=nr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Cr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,bn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&vn(e,0):io|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Yn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Zi=null,jn=null,po=!1,Ki=!1,xo=!1,na=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Zi=jn=e:jn=jn.next=e),Ki=!0,po||(po=!0,Hg())}function Ns(e,t){if(!xo&&Ki){xo=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ki=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),mh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(m0,e),lr=null,tr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!U0(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(L0,{ref:d,iconNode:r,className:Op(`lucide-${D0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=_e("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=_e("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=_e("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=_e("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=_e("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=_e("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=_e("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=_e("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=_e("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=_e("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=_e("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=_e("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=_e("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=_e("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=_e("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=_e("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_b=_e("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",Cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=_e("youtube",kb),Up=O.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??Ib),g=u+m;if(g+x>Wb){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return Cn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return Cn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return Cn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return Cn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Nv).slice(0,4)}function kn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function yr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Ev),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return wv(s,Sv)}function yt(s,r){const o=Tn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function jr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[g,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(A=>(A+N+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=kn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Uv[s??""]??"default"}function Nr(){return Gp(P().theme.templateId)}const pr=5,nu=1.8,Hv=3;function Lv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*pr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Tn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=jr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=jr(s),f=ht(s),d=pl(s),m=Ha(s),x=kn(s),g=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=Nr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=jr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Nr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:_u(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function Sr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Ls(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Ls(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Ys(s){return Gs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Gs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Gs(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function j(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function N(){m=null,x=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function x(){return d}function g(j){return d=m(j),v}function p(j){return y().set(x()+j)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(Sr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function x(v){return u=v,f=v,m(v)}function g(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(Sr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function N(){v=!0,g&&g.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Mu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=x;return m.slice(N,A)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(j){return j===1?g(o.get()):j===-1?x(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=j(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(x,g).map((N,A,L)=>{const H=!A,G=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(G){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):x(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return g(L);const H=L.filter(G=>ku(G)===A);return H.length?g(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,j){const w=f.byDistance(v,j);x(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);x(N)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Sr(x)||x(w,H))&&N(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Cu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function x(j){return`translate3d(0px,${j}px,0px)`}function g(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Ys(f),v=Ys(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Sr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(N=>{g||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>x.observe(N))}function y(){x&&x.disconnect(),g=!0}function v(N){return Gs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Ys(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Ys(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(g,p),K=ce.measureSize(le),he=my(K),Xe=ry(x,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Ys(o),te=({dragHandler:bl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(bl.pointerDown()),qn.seek()},Ce=({scrollBody:bl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Fs,scrollBounds:Ba,options:{loop:pa}},xa)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),ql=pa?rl:rl&&qa,Ws=ql&&!zr.pointerDown();Ws&&Tr.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=cy(u,f,()=>te(Bn),bl=>Ce(Bn,bl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),gl=py(It,Bt,nl,Pt,j,tt),Un=Sy(v,oe,F,ze,Pt),Hn=wy(De,Te,at,gl,Un,Pt,m),pt=yy(ze),Ks=Xs(),Js=Ay(r,o,m,A),{slideRegistry:Ln}=Ny(ie,G,oe,fe,E,Oe),La=Ey(s,o,Ln,Hn,gl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Hn,gl,Un,Te,m,he,w,N,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:La,slidesHandler:Ty(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Gs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Gs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Xs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=g,A=ce;let L=!1,H,G=p(Oy,gr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{_u(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ay()&&m){gr.globalOptions=Ou.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,x())},N=()=>{j&&(j=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function wr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},x=window.scrollY,g=document.body,p=g.style.position,y=g.style.top,v=g.style.width,j=g.style.overflow;return g.style.position="fixed",g.style.top=`-${x}px`,g.style.width="100%",g.style.overflow="hidden",window.addEventListener("keydown",m),()=>{g.style.position=p,g.style.top=y,g.style.width=v,g.style.overflow=j,window.scrollTo(0,x),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),f]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(N=>N.key));for(const N of d)x.has(N.key)||(m.push(N),x.add(N.key));const g=N=>Ko(N)?!1:By.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(N=>!g(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Gy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Xy,{text:N},N.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=yr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=Nr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(s1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function s1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(wr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function mp(){const s=P(),r=yr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function r1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(j=>v.test(da(j))).length,g=pp.filter((v,j)=>j===0||x(v)>0&&x(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const j=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:_b,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(x=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(da(x))&&` · ${mr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:x1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:Tb,흐림:sb,비:tb,눈:ab};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,j,w,N,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&x(-1),A.key==="ArrowRight"&&x(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",g),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(wr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(bp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:Tn(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Nr(),g=O.useContext(ex),p=x==="reservation"?Eu:x==="oasi"?zu:x==="studio"?Tu:x==="pastel"?Au:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(g),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Us=318,zn=168,Np=34,A1=16,Sp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>Sp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=zn-Np*2)return r}return Sp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(N=>ix(N.lat,N.lng,d))),x=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,g=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=x-Us/2,y=g-zn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Us)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+zn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:zn,viewBox:`0 0 ${Us} ${zn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:O1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(U1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:tx},{id:"people",label:"인물 열전",Component:lx},{id:"chronicle",label:"시간의 골목",Component:ax},{id:"reading",label:s,Component:nx},{id:"postcard",label:"오늘의 엽서",Component:sx}];function Y1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))})]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Ep(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:tx,daily:E1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",zp=5,Tp=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",F1="#efe7d3",Ap="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,j=Math.max(y/g.width,v/g.height),w=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Hs);if(G.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Cp="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Dn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],x=Mn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Tn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Tn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Tn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function uj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function hj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Xp(),d=pj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:qy,rooms:Io,menu:Io,programs:Io,booking:r?mp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:vp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!Tv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Uu(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(jj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?au.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:kp})})):Mp?Nj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-DewzQu2L.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,qb as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/index-BXXi9Ul2.js b/solution/site/scripts/mockup/vendor/retired/index-BXXi9Ul2.js similarity index 100% rename from solution/site/scripts/mockup/vendor/index-BXXi9Ul2.js rename to solution/site/scripts/mockup/vendor/retired/index-BXXi9Ul2.js diff --git a/solution/site/scripts/mockup/vendor/retired/index-BbgO8jrB.js b/solution/site/scripts/mockup/vendor/retired/index-BbgO8jrB.js new file mode 100644 index 0000000..671dad1 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-BbgO8jrB.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":Sb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function kb(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new G;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(g)&&u(g),Z(O)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(g,O),j||w||(j=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=N;return function(){var ae=N;N=Q;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Lh;function Ab(){return Lh||(Lh=1,Xo.exports=_b()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function Cb(){if(Bh)return xt;Bh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function Ob(){if($h)return Ds;$h=1;var s=Ab(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Af(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return kd(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function _d(){return Je().memoizedState}function Ad(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Od(l,t,a)))}function Cd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{fm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,jm(c.current),bm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Cp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Cp("lucide",f),...!d&&!Hb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:Cp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Xh(g.now)}${g.total?` / ${Xh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},kj={PUBLISHED:3};function An(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,x,g]=Kh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return Cn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return Cn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return Cn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return Cn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function kv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var k;return(k=j.alt)==null?void 0:k.trim()}).sort((j,k)=>Number(k.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(k=>(k+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Ov);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const k=N.current;if(N.current=null,k===null)return;const L=j.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,k)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===g,className:`h-1.5 rounded-full bg-current transition-all ${k===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Lv),g=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!ep(x)||!ep(g)?x===g:ku(x,g)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=lp(d)&&lp(m);o[f]=x?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:k,width:L}=j;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Vp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,k,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ae(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,k=N/w;return w&&!j&&Ge(k)>.1?k:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function k(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:k,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",k=Ge(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(k/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(j),R=!k,Z=Cu(o,k);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:k}=x;return m.slice(j,k)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function N(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return x(p).map(k=>k[0]).map((k,L)=>k+g[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,k,L)=>{const H=!k,G=Cu(L,k);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((k,L)=>Ge(k)-Ge(L))[0]}function p(j){const k=s?m(j):x(j),L=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(j,k){const L=[j,j+o,j-o];if(!s)return j;if(!k)return g(L);const H=L.filter(G=>Au(G)===k);return H.length?g(H):al(L)-o}function v(j,k){const L=r[j]-f.get(),H=y(L,k);return{index:j,distance:H}}function N(j,k){const L=f.get()+j,{index:H,distance:G}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:j};const Z=r[H]-G,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=ry(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=j(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(y,Y);return L(W,-o,!0)}function R(){return N.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function ky(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(j&&G||!j&&!G)&&k.push(H),k},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const k=v(j);return j&&(d=k),j||(m=k),k}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=k(),N=o.map(m),w=L();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function j(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function k(H){return N?w(H,o):j(H)}return{groupSlides:k}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,O,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,N,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=_y(r,o,m,k),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,j,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:ky(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Qs(),g=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,k=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>x.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,k]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(g);le.current=g;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,M.useEffect(()=>{if(!s)return;const x=j=>{j.key==="Escape"&&m.current()},g=window.scrollY,p=document.body,y=p.style.position,v=p.style.top,N=p.style.width,w=p.style.overflow;return p.style.position="fixed",p.style.top=`-${g}px`,p.style.width="100%",p.style.overflow="hidden",window.addEventListener("keydown",x),()=>{p.style.position=y,p.style.top=v,p.style.width=N,p.style.overflow=w,window.scrollTo(0,g),window.removeEventListener("keydown",x)}},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Qy(){var N,w;const s=P(),r=bu(s),o=An(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var k,L,H;return j.confirmed&&[(k=j.stayGuide)==null?void 0:k.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var k;return((k=j.stayGuide)==null?void 0:k.fields)??[]}),m=Xy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Gy.has(j.label)||d.some(k=>k.key===j.key&&k.group==="rules"),p=f.map(j=>{var k;return((k=j.stayGuide)==null?void 0:k.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Ky,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Jy,{text:j},j.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Vy="#16a34a",Zy="#e04b25";function Ky({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Vy:Zy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Jy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Fy="/v1/site/booking-request";function Wy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Fy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Iy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function e1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>e1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Py(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Iy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||N));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(t1,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function t1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Wy,{stay:o,guests:u})]})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function i1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function c1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(o1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function o1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(n1,{});if(x==="oasi")return n.jsx(s1,{});if(x==="studio")return n.jsx(i1,{});if(x==="pastel")return n.jsx(r1,{});if(x==="editorial")return n.jsx(c1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(l1,{});if(g==="rooms.tabs")return n.jsx(a1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(u1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function u1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function f1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function d1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function m1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function h1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function p1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const x1=["봄","여름","가을","겨울"];function g1(){const s=P(),r=s.local.festivals,o=p1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=x1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function b1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:b1(s.distanceText)}function v1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=mp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function y1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(y1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function j1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:j1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:k0,흐림:i0,비:l0,눈:n0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,N,w,j,k;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=S1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const g=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&x(-1),k.key==="ArrowRight"&&x(1)},p=window.scrollY,y=document.body,v=y.style.position,N=y.style.top,w=y.style.width,j=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",g),()=>{y.style.position=v,y.style.top=N,y.style.width=w,y.style.overflow=j,window.scrollTo(0,p),window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function k1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function _1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(tx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function A1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(C1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,O1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!U1(f,x)?f:void 0}),f=x)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function L1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:j*Hl-p,top:k*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,k)=>{const L=m[k];return n.jsx("a",{href:L1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",q1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(B1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Y1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(G1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function G1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx($1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=V0(y.url),w=Z0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{N&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function Z1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:g.label},g.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,N=v.style.position,w=v.style.top,j=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=N,v.style.top=w,v.style.width=j,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:lx,daily:A1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:M1,itinerary:Y1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",wp=5,Ep=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,k=M.useCallback(async()=>{try{const G=await fetch(`${I1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=lj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var k;return j.enabled&&((k=j.name)==null?void 0:k.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,k)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var N,w,j,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Qy,rooms:Io,menu:Io,programs:Io,booking:r?fp:f1,space:d1,inquiry:m1,exhibition:h1,photos:T1,festival:g1,local:v1,weather:z1,map:gp,faq:k1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!kv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Ru(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Ru(!0)}const Ap=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:_p})})):Ap?Tj(Ap).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-EYbVBjx3.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,kj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-Bfa7kMYe.css b/solution/site/scripts/mockup/vendor/retired/index-Bfa7kMYe.css new file mode 100644 index 0000000..c39fb0f --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-Bfa7kMYe.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-Bfi-wqgo.js b/solution/site/scripts/mockup/vendor/retired/index-Bfi-wqgo.js new file mode 100644 index 0000000..a9a32cb --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-Bfi-wqgo.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Oh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Oh)return;Oh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":Sb,v||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),v)return new Promise((z,j)=>{N.addEventListener("load",z),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Ho={exports:{}},_s={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return _s;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return _s.Fragment=r,_s.jsx=o,_s.jsxs=o,_s}var Rh;function Tb(){return Rh||(Rh=1,Ho.exports=zb()),Ho.exports}var n=Tb(),Lo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),N=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function U(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}U.prototype.isReactComponent={},U.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},U.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=U.prototype;function H(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}var Z=H.prototype=new G;Z.constructor=H,T(Z,U.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,N=3,z=!1,j=!1,T=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(T=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return R?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,N=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,N=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof H=="function")K=function(){H(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){U(ce,0)};function ie(M,Q){Y=U(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(T?(G(Y),Y=-1):T=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||z||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})($o)),$o}var Bh;function Cb(){return Bh||(Bh=1,qo.exports=_b()),qo.exports}var Yo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return xt;qh=1;var s=cu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=kb(),Yo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function Ob(){if(Yh)return Cs;Yh=1;var s=Cb(),r=cu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Es._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var L=` +`+S[a].replace(" at new "," at ");return e.displayName&&L.includes("")&&(L=L.replace("",e.displayName)),L}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,On=s.unstable_shouldYield,Dn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Rn=s.unstable_UserBlockingPriority,La=s.unstable_NormalPriority,Un=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Hn=s.log,Ln=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Hn=="function"&&Ln(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,Nr=Math.log,Sr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(Nr(e)/Sr|0)|0}var Ba=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function wr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Cr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?kr(e,h,qt(t)):l!=null?kr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){_r(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),_r(e)}function kr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ur=!1;if(jl)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Ur=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Ur=!1}var $l=null,Hr=null,li=null;function lf(){if(li)return li;var e,t=Hr,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Vn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Zx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Kx(e,t){if(Fa)return e==="compositionend"||!Yr&&ff(e,t)?(e=lf(),li=Hr=$l=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Vr=null,Fn=null,Zr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zr||Wa==null||Wa!==ei(a)||(a=Wa,"selectionStart"in a&&Qr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fn&&Jn(Fn,a)||(Fn=a,a=Ji(Vr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(A,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(A,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(A,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(A,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,A,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(A,oa)}),je&&Sl(A,me),ne}function se(A,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(A,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(A,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(A,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(A,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,A,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(A,Nb)}),je&&Sl(A,me),ne}function He(A,E,_,B){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===T){if(E.tag===7){l(A,E.sibling),B=i(E,_.props.children),B.return=A,A=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===E.type){l(A,E.sibling),B=i(E,_.props),ls(B,_),B.return=A,A=B;break e}l(A,E);break}else t(A,E);E=E.sibling}_.type===T?(B=Sa(_.props.children,A.mode,B,_.key),B.return=A,A=B):(B=di(_.type,_.key,_.props,null,A.mode,B),ls(B,_),B.return=A,A=B)}return h(A);case j:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(A,E.sibling),B=i(E,_.children||[]),B.return=A,A=B;break e}else{l(A,E);break}else t(A,E);E=E.sibling}B=ec(_,A.mode,B),B.return=A,A=B}return h(A);case W:return _=Aa(_),He(A,E,_,B)}if(ie(_))return I(A,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(A,E,_,B)}if(typeof _.then=="function")return He(A,E,vi(_),B);if(_.$$typeof===H)return He(A,E,pi(A,_),B);yi(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(A,E.sibling),B=i(E,_),B.return=A,A=B):(l(A,E),B=Pr(_,A.mode,B),B.return=A,A=B),h(A)):l(A,E)}return function(A,E,_,B){try{ts=0;var ne=He(A,E,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===gi)throw ee;var we=Mt(29,ee,null,A.mode);return we.lanes=B,we.return=A,we}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Vl=!1;function dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),kf(e,null,l),t}return ui(e,a,t,l),fi(e)}function as(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function hc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var pc=!1;function ns(){if(pc){var e=rn;if(e!==null)throw e}}function ss(e,t,l,a){pc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var L=e.alternate;L!==null&&(L=L.updateQueue,b=L.lastBaseUpdate,b!==h&&(b===null?L.firstBaseUpdate=C:b.next=C,L.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,L=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(pc=!0),L!==null&&(L=L.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},L===null?(C=L=D,S=$):L=L.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);L===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=L,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Dc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=fg(S,a);cs(e,t,L,Ht(e))}else cs(e,t,a,Ht(e))}catch($){cs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function gg(){}function Mc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?gg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Ht())}function Oc(){return ut(Es)}function Cd(){return Fe().memoizedState}function kd(){return Fe().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),as(a,t,l)),t={cache:cc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Od(t,l):(l=Wr(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();cs(e,t,l,a)}function cs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),Le===null&&oi(),!1}catch{}finally{}if(l=Wr(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Dc(e,t,l,a){if(a={lane:2,revertLane:mo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Wr(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var os={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};os.useEffectEvent=Qe;var Rd={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Tc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Cc,useDeferredValue:function(e,t){var l=yt();return kc(l,e,t)},useTransition:function(){var e=Tc(!1);return e=Td.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=nc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=nc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&go(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)fs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),gc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),gc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(lc(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),gc(),e!==null&&q(Ta);break;case 24:El(We)}}function ds(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(L){Me(i,S,L)}}}a=a.next}while(a!==c)}}catch(L){Me(t,t.return,L)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Jc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,l),e=e.sibling;e!==null;)Wc(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Ic=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,yo=ar,e=Sf(e),Qr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,L=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++L===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(jo={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var A=jf(b,se),E=jf(b,He);if(A&&E&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var _=$.createRange();_.setStart(A.node,A.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!yo,jo=yo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=ta,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Dn();var e=ta,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=ta=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),zr(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=so,so=null;var c=ta,h=Rl;if(lt=0,bn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,vs(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Lc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(Bn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=Gd(2),a=Kl(t,l,2),a!==null&&(Xd(l,a,t,e),Bn(a,2),fl(a));break}}t=t.return}}function oo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(to=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&vn(e,0):lo|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ws()),e=Na(e,t),e!==null&&(Bn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Ug(e,t){return Pt(e,t)}var Vi=null,jn=null,uo=!1,Zi=!1,fo=!1,aa=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Vi=jn=e:jn=jn.next=e),Zi=!0,uo||(uo=!0,Lg())}function vs(e,t){if(!fo&&Zi){fo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);fo=!1}}function Hg(){Xm()}function Xm(){Zi=uo=!1;var e=0;aa!==0&&Kg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||vs(e),aa!==0&&(aa=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var L=S.transferSize,$=S.initiatorType;L&&th($)&&(S=S.responseEnd,h+=L*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),mh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ss(c))||t==="script"&&a.querySelector(ws(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ws(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ss(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Ao(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,L){S.onload=C,S.onerror=L}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&_o(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&_o(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ss(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function Ss(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function ws(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(Ss(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Ao(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(ws(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),_o(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(Ss(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Ao(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Co=0;function mb(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0Co?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(hb,e),tr=null,er.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Bo.exports=Ob(),Bo.exports}var eu=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Dp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Dp("lucide",f),...!d&&!Hb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>O.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Bb,{ref:d,iconNode:r,className:Dp(`lucide-${Rb(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ou=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uu=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ua=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ha=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Rp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Up=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],fu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Go=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Hp=O.createContext(null);function D0({payload:s,children:r}){return n.jsx(Hp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Hp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[v,y]=O.useState({}),N=O.useRef(null),z=O.useRef(null),j=O.useRef(null),T=r.length;O.useEffect(()=>{T>1&&u(Math.floor(Math.random()*T))},[T]);const R=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(O.useEffect(()=>{if(!m)return;R();const X=()=>R(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,R]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const U=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},H=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:U.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${U.title}`,onClick:()=>f?H():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!U.lyrics,children:(U.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Lp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Ej={PUBLISHED:3};function Tn(s){return s.filter(r=>Lp(r.status)&&r.value!=null&&r.value!=="")}function Bp(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Bp(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Bp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function du(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Lp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function mu(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function F0(s,r){var p,v;const o=y=>{const N=s.slice(0,Math.max(0,y)),z=N.split(` +`).length,j=y-N.lastIndexOf(` +`);return`${z}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:F0(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const N=y;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const I0=1260,P0=60,ev="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Kh(s.startTime??"")??Kh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(y,N)=>Math.round(y+(N-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function av(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const qp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function $p(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Yp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function hu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Yp(s)[0]??nv(s)[0]}function pu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:du(r),value:xu(r,s.facts)})).filter(r=>r.value!=="")}function xu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=qp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return mu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:du(m),value:xu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function gu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return qp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:du(u),value:xu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return An(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return An(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return An(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return An(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return An(s,Sv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Yp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return mu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=$p(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function Xp(s){if(s.place.category!==da.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,zv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Ev(s,wv)}function gt(s,r){const o=Ls(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function bu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(O.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function kv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var T;return(T=j.alt)==null?void 0:T.trim()}).sort((j,T)=>Number(T.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=O.useState(0),[v,y]=O.useState(!1),N=O.useRef(null),z=O.useCallback(j=>p(T=>(T+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(v||x.length<2)return;const j=setInterval(()=>z(1),Ov);return()=>clearInterval(j)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const T=N.current;if(N.current=null,T===null)return;const R=j.changedTouches[0].clientX-T;Math.abs(R)>40&&z(R<0?1:-1)},children:[x.map((j,T)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:T===0?"high":"low",loading:T===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:T===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,T)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(T),"aria-label":`${T+1}번째 사진`,"aria-current":T===g,className:`h-1.5 rounded-full bg-current transition-all ${T===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=_n(s),d=Ke(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Qp(s){return Hv[s??""]??"default"}function vr(){return Qp(P().theme.templateId)}const mr=5,tu=1.8,Lv=3;function Bv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+tu)} { opacity: 0; } + ${o(r-tu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*mr+tu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Lv),g=f?{href:f.url,label:`${Ls(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:pu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function Gv(){const s=P(),r=gu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Bs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Vp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function vu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Vp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=Ha(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Bs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:v})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Kv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(uu,{className:"size-4"})]})]})]})})}function yu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Xs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function ju(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(ju(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(ju(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Zp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(ju(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Nu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Su({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?Nu:p==="oasi"?Su:p==="studio"?wu:p==="pastel"?Eu:p==="editorial"?vu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:zu(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return zu(f,m)})}function Tu(s){return typeof s=="number"}function lu(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Rs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Rs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function qs(s){return $s(s).map(Number)}function al(s){return s[Qs(s)]}function Qs(s){return Math.max(0,s.length-1)}function _u(s,r){return r===Qs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function $s(s){return Object.keys(s)}function Kp(s,r){return[s,r].reduce((o,u)=>($s(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Kp(d,m):m}),o),{})}function au(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return lu(s)?o[s](g):s(r,g,p)}return{measure:m}}function Ys(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Ys(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function v(){z(),f.clear()}function y(R){if(!g)return;m||(m=R,o(),o());const U=R-m;for(m=R,x+=U;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function N(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:v,start:N,stop:z,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(j){const{height:T,width:R}=j;return u?T:R}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Jp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),y}function p(N){return v().set(x()+N)}function v(){return Jp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function fy(s,r,o,u,f,d,m,x,g,p,v,y,N,z,j,T,R,U,G){const{cross:H,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Ys(),W=Ys(),le=Ra(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(Au(te)*-1),tt=v.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,H),N.emit("pointerDown")))}function oe(te){if(!au(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,H),Nt=Rs(De,Xe),It=Rs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>T&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=iy(tt,Nt),nl=K-10*It,Bt=U+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function dy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(au(y,r)?y:y.touches[0])[j]}function x(y){return u=y,f=y,m(y)}function g(y){const N=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),N}function p(y){if(!u||!f)return 0;const N=m(f)-m(u),z=d(y)-d(u),j=d(y)-d(f)>170,T=N/z;return z&&!j&&Ge(T)>.1?T:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function N(R){return f.measureSize(m.measure(R))}function z(R){if(!d)return;p=N(s),v=u.map(N);function U(G){for(const H of G){if(y)return;const Z=H.target===s,X=u.indexOf(H.target),V=Z?p:v[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){R.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(R,G))&&U(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){y=!0,g&&g.disconnect()}return{init:z,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=Au(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function T(){return x}function R(){return m}function U(){return H(f)}function G(){return Z(d)}function H(V){return g=V,X}function Z(V){return p=V,X}const X={direction:T,duration:j,velocity:R,seek:N,settled:z,useBaseFriction:G,useBaseDuration:U,useFriction:Z,useDuration:H};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",T=Ge(s[j]-r.get()),R=o.get()-r.get(),U=x.constrain(T/m);o.subtract(R*U),!z&&Ge(R){const{min:R,max:U}=d,G=d.constrain(j),H=!T,Z=_u(o,T);return H?U:Z||p(R,G)?R:p(U,G)?U:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:T}=x;return m.slice(j,T)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function v(N){if(!p(N))return;const z=s*(N*-1);u.forEach(j=>j.add(z))}return{loop:v}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=N(),v=z();function y(){return x(u).map(T=>al(T)[m]-T[0][d]).map(Ge)}function N(){return u.map(T=>o[d]-T[d]).map(T=>-Ge(T))}function z(){return x(p).map(T=>T[0]).map((T,R)=>T+g[R])}return{snaps:p,snapsAligned:v}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const N=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?N:N.slice(x,g).map((j,T,R)=>{const U=!T,G=_u(R,T);if(U){const H=al(R[0])+1;return np(H)}if(G){const H=Qs(d)-al(R)[0]+1;return np(H,al(R)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((T,R)=>Ge(T)-Ge(R))[0]}function p(j){const T=s?m(j):x(j),R=r.map((G,H)=>({diff:v(G-T,0),index:H})).sort((G,H)=>Ge(G.diff)-Ge(H.diff)),{index:U}=R[0];return{index:U,distance:T}}function v(j,T){const R=[j,j+o,j-o];if(!s)return j;if(!T)return g(R);const U=R.filter(G=>Au(G)===T);return U.length?g(U):al(R)-o}function y(j,T){const R=r[j]-f.get(),U=v(R,T);return{index:j,distance:U}}function N(j,T){const R=f.get()+j,{index:U,distance:G}=p(R),H=!s&&d(R);if(!T||H)return{index:U,distance:j};const Z=r[U]-G,X=j+v(Z,0);return{index:U,distance:X}}return{byDistance:N,byIndex:y,shortcut:v}}function Ey(s,r,o,u,f,d,m){function x(y){const N=y.distance,z=y.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,N){const z=f.byDistance(y,N);x(z)}function p(y,N){const z=r.clone().set(y),j=f.byIndex(z.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function j(T){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(H=>H.includes(T));Tu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((T,R)=>{d.add(T,"focus",U=>{(yr(x)||x(z,U))&&j(R)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Ms(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Tu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Fp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const z=ry(s.direction(N));z!==f&&(u.transform=o(z),f=z)}function p(N){d=!N}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const v=qs(f),y=qs(f).reverse(),N=U().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function T(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function R(Y,W,le){const xe=T(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Ms(-1),translate:Fp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function U(){const Y=m[0],W=j(y,Y);return R(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(v,Y);return R(W,-o,!0)}function H(){return N.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:H,clear:X,loop:Z,loopPoints:N}}function Ay(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(T=>{const R=r.indexOf(T.target);f[R]=T}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function v(){x&&x.disconnect(),g=!0}function y(j){return $s(f).reduce((T,R)=>{const U=parseInt(R),{isIntersecting:G}=f[U];return(j&&G||!j&&!G)&&T.push(U),T},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const T=y(j);return j&&(d=T),j||(m=T),T}return{init:p,destroy:v,get:N}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=j(),y=T(),N=o.map(m),z=R();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function T(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function R(){return o.map((G,H,Z)=>{const X=!H,V=_u(Z,H);return X?N[H]+v:V?N[H]+y:Z[H+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:z,startGap:v,endGap:y}}function ky(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,N=Tu(o);function z(U,G){return qs(U).filter(H=>H%G===0).map(H=>U.slice(H,H+G))}function j(U){return U.length?qs(U).reduce((G,H,Z)=>{const X=al(G)||0,V=X===0,Y=H===Qs(U),W=f[p]-d[X][p],le=f[p]-d[H][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(H),Y&&G.push(U.length),G},[]).map((G,H,Z)=>{const X=Math.max(Z[H-1]||0);return U.slice(X,G)}):[]}function T(U){return N?z(U,o):j(U)}return{groupSlides:T}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:N,dragFree:z,dragThreshold:j,inViewThreshold:T,slidesToScroll:R,skipSnaps:U,containScroll:G,watchResize:H,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,M,f),w=ky(ce,K,R,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,y),Te=Jp(Qs(oe),v,y),at=Te.clone(),Oe=qs(o),te=({dragHandler:bl,scrollBody:Hn,scrollBounds:Ln,options:{loop:sl}})=>{sl||Ln.constrain(bl.pointerDown()),Hn.seek()},Ce=({scrollBody:bl,translate:Hn,location:Ln,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:Nr,animation:Sr,eventHandler:Js,scrollBounds:Ba,options:{loop:xa}},ga)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),Bl=xa?rl:rl&&qa,Fs=Bl&&!Nr.pointerDown();Fs&&Sr.stop();const Ws=Ln.get()*ga+bt.get()*(1-ga);sl.set(Ws),xa&&(il.loop(bl.direction()),vt.loop()),Hn.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=oy(u,f,()=>te(Un),bl=>Ce(Un,bl)),tt=.68,Nt=oe[Te.get()],It=Ms(Nt),nl=Ms(Nt),Bt=Ms(Nt),Pt=Ms(Nt),gl=xy(It,Bt,nl,Pt,N,tt),On=wy(y,oe,F,ze,Pt),Dn=Ey(De,Te,at,gl,On,Pt,m),pt=jy(ze),Zs=Ys(),Ks=_y(r,o,m,T),{slideRegistry:Rn}=Sy(ie,G,oe,fe,w,Oe),La=zy(s,o,Rn,Dn,gl,Zs,m,V),Un={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Dn,gl,On,Te,m,he,z,j,U,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,H,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:On,scrollTo:Dn,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:La,slidesHandler:Ay(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Rn,slidesToScroll:w,target:Pt,translate:Fp(ce,r)};return Un}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Kp(d,m||{})}function o(d){const m=d.breakpoints||{},x=$s(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>$s(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Ys(),g=Oy(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:N,off:z,emit:j}=g,T=ce;let R=!1,U,G=p(Dy,pr.globalOptions),H=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=H;V=(lu(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=lu(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){R||(G=p(G,Oe),H=v(G),Z=te||Z,W(),U=le(H),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),H.active&&(U.translate.to(U.location.get()),U.animation.init(),U.slidesInView.init(),U.slideFocus.init(at),U.eventHandler.init(at),U.resizeHandler.init(at),U.slidesHandler.init(at),U.options.loop&&U.slideLooper.loop(),V.offsetParent&&Y.length&&U.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){U.dragHandler.destroy(),U.eventStore.clear(),U.translate.clear(),U.slideLooper.clear(),U.resizeHandler.destroy(),U.slidesHandler.destroy(),U.slidesInView.destroy(),U.animation.destroy(),m.destroy(),x.clear()}function he(){R||(R=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!H.active||R||(U.scrollBody.useBaseFriction().useDuration(te===!0?0:H.duration),U.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=U.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=U.index.add(-1).get();Xe(te,Oe,1)}function Q(){return U.index.add(1).get()!==w()}function ae(){return U.index.add(-1).get()!==w()}function pe(){return U.scrollSnapList}function Ne(){return U.scrollProgress.get(U.offsetLocation.get())}function w(){return U.index.get()}function q(){return U.indexPrevious.get()}function J(){return U.slidesInView.get()}function F(){return U.slidesInView.get(!1)}function re(){return X}function fe(){return U}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:T,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function Cu(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{zu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ny()&&m){pr.globalOptions=Cu.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Cu.globalOptions=void 0;const ku=4e3;function Mu({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([T])=>{m=T.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const z=T=>{const R=T.target;!(R instanceof Element)||!R.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Wp(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function Vs({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=ku,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[N,z]=Cu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,T]=O.useState([]),[R,U]=O.useState(0),[G,H]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!z)return;const ie=()=>{U(z.selectedScrollSnap()),H(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{T(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),O.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),Mu({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=O.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=O.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=O.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===R,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===R?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[R+1," / ",j.length]})]})]})}function Ou({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function jr({open:s,onClose:r,label:o,children:u,wide:f}){return O.useEffect(()=>{if(!s)return;const d=x=>{x.key==="Escape"&&r()},m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",d),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",d)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl px-5 pb-8 pt-14 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${f?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})}),u]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=gu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:yu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Xo=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,z;const s=P(),r=pu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||kv(s),f=s.links.filter(j=>{var T,R,U;return j.confirmed&&[(T=j.stayGuide)==null?void 0:T.policy,(R=j.stayGuide)==null?void 0:R.service,(U=j.stayGuide)==null?void 0:U.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var T;return((T=j.stayGuide)==null?void 0:T.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Xo(j)?!1:By.has(j.label)||d.some(T=>T.key===j.key&&T.group==="rules"),p=f.map(j=>{var T;return((T=j.stayGuide)==null?void 0:T.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(up,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(up,{title:"시설 · 편의",rows:y.filter(j=>!Xo(j)),children:n.jsx(Gy,{rows:y.filter(Xo)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32))),n.jsx(Qy,{})]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Qo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Qo.has(u.value))-Number(Qo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Qo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(ou,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Qy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Vy="/v1/site/booking-request";function Zy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Vy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(ks,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(ks,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(ks,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(ks,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(ks,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function ks({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Vo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Ky(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Zo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Fy(s){return mu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=$p(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function ex(){var ce;const s=P(),r=O.useMemo(()=>Fy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Jy(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Ky(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=O.useState(null),[N,z]=O.useState(null),[j,T]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[R,U]=O.useState(2),[G,H]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||N));return O.useEffect(()=>{U(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Wy,{payload:s,onReset:()=>H(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Vo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Zo(Y.name):null].filter(Boolean).join(" · "),guests:`${R}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Vo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Zo(Y.name):null,`${R}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(ha,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Vo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>T(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>U(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[R,"명"]}),n.jsx("button",{type:"button",onClick:()=>U(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Zo(Y.name):""} · ${R}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>H(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Wy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(ou,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Zy,{stay:o,guests:u})]})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(uu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:pu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Nu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function t1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function l1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function a1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(uu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function n1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Bs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(vu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(s1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function s1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Ko(){var p;const s=P(),r=ht(s),o=Xp(s),[u,f]=O.useState(null),d=vr();if(d==="reservation")return n.jsx(e1,{});if(d==="oasi")return n.jsx(t1,{});if(d==="studio")return n.jsx(l1,{});if(d==="pastel")return n.jsx(a1,{});if(d==="editorial")return n.jsx(n1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Iy,{});if(m==="rooms.tabs")return n.jsx(Py,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(i1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Ru,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(ha,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(N=>N.unitId===v.unitId);return n.jsx(jr,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[n.jsx("h3",{className:"h3",children:v.name}),(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:bu(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]}),n.jsx(ex,{})]})]})},v.unitId)})]})}function i1({images:s,name:r}){return n.jsx(Vs,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ou,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function r1(){const s=P(),r=Ke(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:bu(f)},f.url))]})})]})})}function mp(){const s=P(),r=Xp(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:bu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(ex,{})]})})}function c1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function o1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Rp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:fu,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function u1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function f1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(lv()),[]),s}const d1=["봄","여름","가을","겨울"];function m1(){const s=P(),r=s.local.festivals,o=f1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=d1.filter(y=>r.some(N=>N.season===y)),m=r.filter(y=>{var N;return!((N=y.season)!=null&&N.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const N=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const N=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(hp,{items:N,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Vs,{label:r,children:s.map(d=>n.jsx(Ou,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(jr,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:u.name}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Us=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Us},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Us},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Us}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Us))}분`}function h1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:h1(s.distanceText)}function p1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(N=>y.test(fa(N))).length,g=pp.filter((y,N)=>N===0||x(y)>0&&x(y)y.id===f)??pp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[yu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Us,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const N=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:C0,places:o,within:v}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function x1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(x1,{icon:r,children:s}),n.jsx(Vs,{label:s,children:f.map(x=>n.jsx(Ou,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(jr,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:d.name}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function g1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function b1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const N=await y.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(z=>({temperature:Number(N.weather.temperature),condition:g1(Number(N.weather.weather_code)),note:z==null?void 0:z.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function v1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const y1={맑음:A0,흐림:i0,비:l0,눈:n0};function j1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function N1(){var y,N,z,j,T;const s=P(),r=b1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=v1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(T=f==null?void 0:f.tempNotes)==null?void 0:T[u]);if(!r)return null;const p=j1(r.observedAt),v=y1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function S1(){const s=P(),r=gu(s),o=s.theme.sections.find(T=>T.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useRef(null),[x,g]=O.useState(0),[p,v]=O.useState({prev:!1,next:!0}),y=O.useCallback(()=>{const T=m.current;if(!T)return;const R=T.clientWidth,U=T.scrollWidth-R;g(R>0?Math.round(T.scrollLeft/R):0),v({prev:T.scrollLeft>8,next:T.scrollLeft(y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),Mu({box:m,interval:ku,advance:()=>Wp(m.current,1)});const N=O.useCallback(T=>{const R=m.current;if(!R)return;const U=window.matchMedia("(prefers-reduced-motion: reduce)").matches;R.scrollBy({left:T*R.clientWidth,behavior:U?"auto":"smooth"})},[]),z=O.useCallback(()=>d(null),[]),j=O.useCallback(T=>d(R=>R===null?null:(R+T+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const T=U=>{U.key==="Escape"&&z(),U.key==="ArrowLeft"&&j(-1),U.key==="ArrowRight"&&j(1)},R=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",T),()=>{document.body.style.overflow=R,window.removeEventListener("keydown",T)}},[f,z,j]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:m,onScroll:y,className:"flex snap-x snap-mandatory gap-3 overflow-x-auto [touch-action:pan-y_pinch-zoom] [scrollbar-width:none] lg:grid lg:grid-cols-4 lg:gap-3 lg:snap-none lg:overflow-visible [&::-webkit-scrollbar]:hidden",children:r.map((T,R)=>n.jsx("li",{className:"w-full shrink-0 snap-center lg:w-auto",children:n.jsx(Jo,{image:T,onOpen:()=>d(R),className:"aspect-4/3 rounded-lg"})},T.mediaId))}),r.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(bp,{dir:"prev",show:p.prev,onClick:()=>N(-1)}),n.jsx(bp,{dir:"next",show:p.next,onClick:()=>N(1)}),n.jsxs("span",{className:"pointer-events-none absolute bottom-3 right-3 rounded-full bg-black/55 px-2.5 py-1 text-[length:var(--fs-xs)] font-semibold tabular-nums text-white lg:hidden",children:[Math.min(x+1,r.length)," / ",r.length]})]})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((T,R)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Jo,{image:T,onOpen:()=>d(R),className:"rounded-lg",free:!0})},T.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((T,R)=>n.jsx("li",{children:n.jsx(Jo,{image:T,onOpen:()=>d(R),className:"aspect-square rounded-lg"})},T.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:z,children:[n.jsx("button",{type:"button",onClick:z,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(vp,{dir:"prev",onClick:()=>j(-1)}),n.jsx(vp,{dir:"next",onClick:()=>j(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:T=>T.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,show:r,onClick:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:o,"aria-label":s==="prev"?"이전 사진":"다음 사진","aria-hidden":!r,tabIndex:r?0:-1,className:`absolute top-1/2 z-10 flex size-9 -translate-y-1/2 items-center justify-center rounded-full bg-black/45 text-white backdrop-blur-sm transition-opacity hover:bg-black/65 lg:hidden ${r?"opacity-100":"pointer-events-none opacity-0"} ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(u,{className:"size-5"})})}function vp({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Jo({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function yp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(ou,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Zp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Go,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Go,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Go,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function w1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=hu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Rp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function kn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(fu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Hs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function E1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?Nu:x==="oasi"?Su:x==="studio"?wu:x==="pastel"?Eu:x==="editorial"?vu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Hs:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Mn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Vs,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Gs(s,r,o){return`총 ${s}${o}`}const jp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function Np(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return jp[o%jp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Hs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":Np(m),"--w4-vinyl":Hs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":Np(g),"--w4-vinyl":Hs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function z1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Gs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(T1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function T1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Gs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Gs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Hs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Mn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Mn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Mn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"장"),children:n.jsx(Mn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function A1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Mn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Os=318,zn=168,Sp=34,_1=16,wp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function C1(s){if(s.length<2)return 15;for(let r=_1;r>wp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Os-Sp*2&&f<=zn-Sp*2)return r}return wp}function k1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!M1(f,x)?f:void 0}),f=x)}),u}function M1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function O1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function D1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Zp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function R1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=k1(s,o),d=C1(f),m=O1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Os/2,v=g-zn/2,y=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Os)/Hl);j+=1)for(let T=Math.floor(v/Hl);T<=Math.floor((v+zn)/Hl);T+=1){if(T<0||T>=y)continue;const R=(j%y+y)%y;N.push({key:`${j}-${T}`,url:`https://tile.openstreetmap.org/${d}/${R}/${T}.png`,left:j*Hl-p,top:T*Hl-v})}const z=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Os,height:zn,viewBox:`0 0 ${Os} ${zn}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,T)=>{const R=m[T];return n.jsx("a",{href:D1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:R.x-p,top:R.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function U1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function nu(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function H1(){return n.jsx("div",{className:"flex w-6 shrink-0 items-center self-stretch","aria-hidden":!0,children:n.jsx("span",{className:"w-full border-t-2 border-dashed",style:{borderColor:Se}})})}function L1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d}){const m=tv({name:s.name,startTime:o,stops:u}),[x,g]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&g(!0)},[]),n.jsxs("article",{className:"w4-paper w-[320px] shrink-0 snap-center border",style:{backgroundColor:Ft,borderColor:Se},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[m.from,"–",m.to," · ",U1(m.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",m.from]})]}),x&&n.jsx(R1,{stops:m.stops.map(p=>p.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:m.stops.map((p,v)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:p.time}),n.jsxs("div",{className:`border-l pl-3 ${x?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[p.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",p.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[p.stop.imageUrl&&x&&n.jsx("img",{src:p.stop.imageUrl,alt:`${p.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(E1,{n:v+1}),p.stop.name]}),p.stop.note&&n.jsx("span",{hidden:!x,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.stop.note})]})]}),n.jsxs("p",{hidden:!x,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[p.time,"–",p.until,p.stop.searchQuery&&` · 지도 검색 ${p.stop.searchQuery}`]})]})]},`${p.stop.name}-${v}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>g(p=>!p),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:x?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!x,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Fo="그 밖의 일정";function B1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>nu(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Fo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var N;return(((N=y.duration)==null?void 0:N.trim())||Fo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(q1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Fo)===p}),placeName:s.place.name},x)},p))]})}function q1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=nu(v).length,{item:v,start:y}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(Mn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>nu(p).flatMap((y,N)=>{const z=n.jsx(L1,{item:p,badge:y.label??p.duration??`${N+1}일차`,startTime:y.startTime,stops:y.stops,first:N===0,placeName:o},`${p.name}-${v}-${N}`);return N===0?[z]:[n.jsx(H1,{},`${p.name}-${v}-c${N}`),z]}))})]})}function $1(){const s=P(),r=Wt(s,"video"),[o,u]=O.useState(),f=O.useRef(null),[d,m]=O.useState({prev:!1,next:!0}),x=O.useCallback(()=>{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(v=>{const y=f.current;if(!y)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Mu({box:f,interval:ku,advance:()=>Wp(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const N=V0(v.url),z=Z0(v.url),j=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:T=>{N&&(T.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Ep,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Ep,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Ep({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Y1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},G1=s=>[{id:"songs",label:"가요 다방",Component:lx},{id:"people",label:"인물 열전",Component:ax},{id:"chronicle",label:"시간의 골목",Component:nx},{id:"reading",label:s,Component:sx},{id:"postcard",label:"오늘의 엽서",Component:ix}];function X1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=G1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Y1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const Q1={open:"진행 중",soon:"곧 시작",closed:"종료"};function zp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Wo(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Q1[r]}function Io(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function V1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?zp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?zp(p,o):void 0,N=Wo(p,y),z=Io(p),j=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&N!=="공지"?Ze:Ft,color:y==="open"&&N!=="공지"?ma:dl,borderColor:y==="open"&&N!=="공지"?Ze:Se},children:N}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Wo(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Wo(x,g)}),Io(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Io(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Z1={songs:lx,daily:z1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:A1,itinerary:B1,video:$1,event:V1,story:X1},K1="/v1/site/review",J1="/v1/site/reviews",Tp=5,Ap=500;function F1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[v,y]=O.useState(!1),[N,z]=O.useState(null),j=s.site.placeId,T=O.useCallback(async()=>{try{const G=await fetch(`${J1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const H=await G.json();Array.isArray(H==null?void 0:H.items)&&o(H.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),T()},[T]),O.useEffect(()=>{v&&(u.current=Date.now())},[v]);async function R(G){if(G.preventDefault(),g)return;const H=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(K1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(H.get("nickname")??"")||null,consent:H.get("consent")==="on",company:String(H.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await T())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const U=Math.ceil(r.length/Tp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,H)=>n.jsxs("li",{hidden:Math.floor(H/Tp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:yu(G.publishedAt)})]})]},G.reviewId))}),U>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:U},(G,H)=>n.jsx("button",{type:"button",onClick:()=>d(H),"aria-current":H===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:H===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:H+1},H))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(jr,{open:v,onClose:()=>y(!1),label:"후기 남기기",children:n.jsxs("form",{onSubmit:R,className:"flex flex-col gap-3",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ap,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ap,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function W1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const su=1080,Ds=4,mt=56,iu=190,Po="#1b1a15",I1="#efe7d3",_p="#bf2f1b";function cx(s=su){return s-mt-iu-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function P1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const ej="/v1/image/relay?url=";async function tj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${ej}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function lj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Cp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=lj();d.clearRect(0,0,m,m),d.fillStyle=I1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await tj(r),v=m-mt*2,y=v/1.5,N=Math.max(v/g.width,y/g.height),z=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-j)/2,z,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const T=mt+y+36,R=m-mt-iu,U=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(R,T),d.lineTo(R,m-mt-46),d.stroke(),d.fillStyle=Po,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,U),H=G.slice(0,Ds);if(G.length>Ds){let W=H[Ds-1];for(;W.length&&d.measureText(`${W}…`).width>U;)W=W.slice(0,-1);H[Ds-1]=`${W}…`}H.forEach((W,le)=>d.fillText(W,mt,T+50+le*60));const Z=R+iu/2;d.strokeStyle=Po,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,T,88,108),d.setLineDash([]),d.fillStyle=Po,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,T+46),d.fillText("10원",Z,T+78),d.save(),d.translate(Z,T+210),d.rotate(-6*Math.PI/180),d.strokeStyle=_p,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=_p,d.font=`600 22px ${x}`;const X=P1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function aj(){const s=P(),r=(s.media??[]).filter(H=>H.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,v]=O.useState(!1),[y,N]=O.useState(!0);O.useEffect(()=>{var H;v(((H=window.matchMedia)==null?void 0:H.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const H=o.current,Z=r[u];if(!H||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Cp(H,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,z,j,r]),O.useEffect(()=>{var X;const H=o.current,Z=r[u];!H||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Cp(H,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N))},[]),r.length===0)return null;function T(H){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${H}”`,cx()).length<=Ds):!0}function R(){return new Promise(H=>{const Z=o.current;if(!Z)return H(null);Z.toBlob(X=>H(X),"image/png",.95)})}function U(H){const Z=URL.createObjectURL(H),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const H=await R();if(!H)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([H],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}U(H),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:su,height:su,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Vs,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((H,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:H.url,alt:"",loading:"lazy",className:"size-full object-cover"})},H.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:H=>{T(H.target.value)&&m(H.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void R().then(H=>H&&U(H)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(rj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(cj,{}),n.jsx(kn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const sj=24,ij="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function rj(){const s=P(),r=ux(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>sj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:ij},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function cj(){var p,v,y,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Ls(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Ls(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]})]})})}const oj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,uj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function fj({children:s}){var v,y,N,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var T;return j.enabled&&((T=j.name)==null?void 0:T.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:uj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:oj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,T)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":T===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${T===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,T)=>n.jsxs("li",{className:"flex items-center gap-4",children:[T>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Ls(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Xs(r.site.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function dj({children:s}){var N,z,j,T;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=Ha(r),g=Ke(r)[0],p=hu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(R=>R.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(R=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:R.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:R.value})]},R.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(R=>n.jsx("li",{children:n.jsx("a",{href:R.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:R.label})},R.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((T=o.legal)==null?void 0:T.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Xs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(kn,{})]})}const mj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,hj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function pj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:hj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:mj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(fu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(kn,{})]})}function xj({children:s}){var p,v,y,N;const r=P(),{place:o,site:u}=r,f=Vp(),d=gj(f),m=Ke(r)[0],x=hu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Bs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const j=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Xs(u.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function gj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function bj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Hy,info:qy,rooms:Ko,menu:Ko,programs:Ko,booking:r?mp:r1,space:c1,inquiry:o1,exhibition:u1,photos:S1,festival:m1,local:p1,weather:N1,map:yp,faq:w1,...Z1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(yp,{}),r&&!Av(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(F1,{}),n.jsx(aj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(W1,{})})]})}function ru({payload:s}){const r=Qp(s.theme.templateId),o=r==="reservation"?nj:r==="oasi"?fj:r==="studio"?dj:r==="pastel"?pj:r==="editorial"?xj:vj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(bj,{})})})}function vj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(kn,{})]})}function yj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const jj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Nj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${jj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),Mp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Sj(){return O.useEffect(()=>Uu(!0),[]),null}async function wj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(yj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Nj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}eu.createRoot(hr).render(n.jsxs(O.StrictMode,{children:[n.jsx(ru,{payload:u}),n.jsx(Sj,{})]})),Uu(!0)}const Op=new URLSearchParams(window.location.search).get("placeId");Mp?eu.hydrateRoot(hr,n.jsx(O.StrictMode,{children:n.jsx(ru,{payload:Mp})})):Op?wj(Op).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CzxY29a5.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{eu.createRoot(hr).render(n.jsx(O.StrictMode,{children:n.jsx(ru,{payload:s})}))});export{Vh as F,it as L,da as P,$0 as S,Ej as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-BngyeseZ.js b/solution/site/scripts/mockup/vendor/retired/index-BngyeseZ.js new file mode 100644 index 0000000..9943baf --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-BngyeseZ.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Oh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Oh)return;Oh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":Sb,v||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),v)return new Promise((z,j)=>{N.addEventListener("load",z),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Uo={exports:{}},_s={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return _s;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return _s.Fragment=r,_s.jsx=o,_s.jsxs=o,_s}var Rh;function Tb(){return Rh||(Rh=1,Uo.exports=zb()),Uo.exports}var n=Tb(),Lo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),N=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function U(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}U.prototype.isReactComponent={},U.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},U.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=U.prototype;function L(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}var Z=L.prototype=new G;Z.constructor=L,T(Z,U.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,N=3,z=!1,j=!1,T=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(T=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return R?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,N=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,N=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof L=="function")K=function(){L(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){U(ce,0)};function ie(M,Q){Y=U(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(T?(G(Y),Y=-1):T=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||z||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(qo)),qo}var Bh;function Cb(){return Bh||(Bh=1,Bo.exports=_b()),Bo.exports}var $o={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return xt;qh=1;var s=ru();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=kb(),$o.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function Ob(){if(Yh)return Cs;Yh=1;var s=Cb(),r=ru(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Es._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var H=` +`+S[a].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,On=s.unstable_shouldYield,Dn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Rn=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Un=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Hn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Hn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,jr=Math.log,Nr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(jr(e)/Nr|0)|0}var Ba=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Sr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _r(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Cr(e,h,qt(t)):l!=null?Cr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ar(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ar(e)}function Cr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rr=!1;if(jl)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Rr=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Rr=!1}var $l=null,Ur=null,li=null;function lf(){if(li)return li;var e,t=Ur,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Vn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Zx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Kx(e,t){if(Fa)return e==="compositionend"||!$r&&ff(e,t)?(e=lf(),li=Ur=$l=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Qr=null,Fn=null,Vr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vr||Wa==null||Wa!==ei(a)||(a=Wa,"selectionStart"in a&&Xr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fn&&Jn(Fn,a)||(Fn=a,a=Ji(Qr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(A,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(A,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(A,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(A,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,A,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(A,oa)}),je&&Sl(A,me),ne}function se(A,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(A,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(A,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(A,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(A,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,A,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(A,Nb)}),je&&Sl(A,me),ne}function Le(A,E,_,B){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===T){if(E.tag===7){l(A,E.sibling),B=i(E,_.props.children),B.return=A,A=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===E.type){l(A,E.sibling),B=i(E,_.props),ls(B,_),B.return=A,A=B;break e}l(A,E);break}else t(A,E);E=E.sibling}_.type===T?(B=Sa(_.props.children,A.mode,B,_.key),B.return=A,A=B):(B=di(_.type,_.key,_.props,null,A.mode,B),ls(B,_),B.return=A,A=B)}return h(A);case j:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(A,E.sibling),B=i(E,_.children||[]),B.return=A,A=B;break e}else{l(A,E);break}else t(A,E);E=E.sibling}B=Pr(_,A.mode,B),B.return=A,A=B}return h(A);case W:return _=Aa(_),Le(A,E,_,B)}if(ie(_))return I(A,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(A,E,_,B)}if(typeof _.then=="function")return Le(A,E,vi(_),B);if(_.$$typeof===L)return Le(A,E,pi(A,_),B);yi(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(A,E.sibling),B=i(E,_),B.return=A,A=B):(l(A,E),B=Ir(_,A.mode,B),B.return=A,A=B),h(A)):l(A,E)}return function(A,E,_,B){try{ts=0;var ne=Le(A,E,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===gi)throw ee;var we=Mt(29,ee,null,A.mode);return we.lanes=B,we.return=A,we}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Vl=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),kf(e,null,l),t}return ui(e,a,t,l),fi(e)}function as(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function mc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var hc=!1;function ns(){if(hc){var e=rn;if(e!==null)throw e}}function ss(e,t,l,a){hc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==h&&(b===null?H.firstBaseUpdate=C:b.next=C,H.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,H=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(hc=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var Le=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(Le,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(Le,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(C=H=D,S=$):H=H.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);H===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=H,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Oc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=fg(S,a);cs(e,t,H,Lt(e))}else cs(e,t,a,Lt(e))}catch($){cs(e,t,{then:function(){},status:"rejected",reason:$},Lt())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function gg(){}function kc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?gg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Lt())}function Mc(){return ut(Es)}function Cd(){return Fe().memoizedState}function kd(){return Fe().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),as(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Od(t,l):(l=Fr(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Lt();cs(e,t,l,a)}function cs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),He===null&&oi(),!1}catch{}finally{}if(l=Fr(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Oc(e,t,l,a){if(a={lane:2,revertLane:fo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Fr(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var os={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};os.useEffectEvent=Qe;var Rd={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(e,t){var l=yt();return Cc(l,e,t)},useTransition:function(){var e=zc(!1);return e=Td.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=He.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&xo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)fs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),xc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),xc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(tc(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),xc(),e!==null&&q(Ta);break;case 24:El(We)}}function ds(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(H){Me(i,S,H)}}}a=a.next}while(a!==c)}}catch(H){Me(t,t.return,H)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Kc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,l),e=e.sibling;e!==null;)Fc(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Wc=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,vo=ar,e=Sf(e),Xr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,H=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++H===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(yo={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bLe&&(h=Le,Le=se,se=h);var A=jf(b,se),E=jf(b,Le);if(A&&E&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var _=$.createRange();_.setStart(A.node,A.offset),D.removeAllRanges(),se>Le?(D.addRange(_),D.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!vo,yo=vo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=ta,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Dn();var e=ta,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=ta=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Er(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=no,no=null;var c=ta,h=Rl;if(lt=0,bn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,vs(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Lc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(Bn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=Gd(2),a=Kl(t,l,2),a!==null&&(Xd(l,a,t,e),Bn(a,2),fl(a));break}}t=t.return}}function co(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(eo=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&vn(e,0):to|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ws()),e=Na(e,t),e!==null&&(Bn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Ug(e,t){return Pt(e,t)}var Vi=null,jn=null,oo=!1,Zi=!1,uo=!1,aa=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Vi=jn=e:jn=jn.next=e),Zi=!0,oo||(oo=!0,Hg())}function vs(e,t){if(!uo&&Zi){uo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);uo=!1}}function Lg(){Xm()}function Xm(){Zi=oo=!1;var e=0;aa!==0&&Kg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||vs(e),aa!==0&&(aa=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var H=S.transferSize,$=S.initiatorType;H&&th($)&&(S=S.responseEnd,h+=H*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),mh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ss(c))||t==="script"&&a.querySelector(ws(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ws(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ss(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&To(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,H){S.onload=C,S.onerror=H}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ss(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function Ss(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function ws(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(Ss(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&To(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(ws(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),Ao(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(Ss(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&To(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _o=0;function mb(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0_o?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(hb,e),tr=null,er.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Ho.exports=Ob(),Ho.exports}var Po=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Dp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Dp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>O.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Bb,{ref:d,iconNode:r,className:Dp(`lucide-${Rb(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cu=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ou=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ua=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ha=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Rp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Up=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],uu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Yo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Lp=O.createContext(null);function D0({payload:s,children:r}){return n.jsx(Lp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Lp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[v,y]=O.useState({}),N=O.useRef(null),z=O.useRef(null),j=O.useRef(null),T=r.length;O.useEffect(()=>{T>1&&u(Math.floor(Math.random()*T))},[T]);const R=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(O.useEffect(()=>{if(!m)return;R();const X=()=>R(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,R]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const U=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},L=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:U.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${U.title}`,onClick:()=>f?L():G(),children:f?n.jsx(L0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!U.lyrics,children:(U.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Ej={PUBLISHED:3};function Tn(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Bp(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Bp(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Bp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function fu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function du(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function F0(s,r){var p,v;const o=y=>{const N=s.slice(0,Math.max(0,y)),z=N.split(` +`).length,j=y-N.lastIndexOf(` +`);return`${z}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:F0(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const N=y;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const I0=1260,P0=60,ev="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Kh(s.startTime??"")??Kh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(y,N)=>Math.round(y+(N-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function av(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const qp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function $p(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Yp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function mu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Yp(s)[0]??nv(s)[0]}function hu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:fu(r),value:pu(r,s.facts)})).filter(r=>r.value!=="")}function pu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=qp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return du(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:fu(m),value:pu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function xu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return qp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:fu(u),value:pu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return An(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return An(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return An(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return An(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function La(s){return An(s,Sv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Yp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return du(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=$p(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function Xp(s){if(s.place.category!==da.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,zv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Ev(s,wv)}function gt(s,r){const o=Hs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function gu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(O.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function kv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var T;return(T=j.alt)==null?void 0:T.trim()}).sort((j,T)=>Number(T.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=O.useState(0),[v,y]=O.useState(!1),N=O.useRef(null),z=O.useCallback(j=>p(T=>(T+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(v||x.length<2)return;const j=setInterval(()=>z(1),Ov);return()=>clearInterval(j)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const T=N.current;if(N.current=null,T===null)return;const R=j.changedTouches[0].clientX-T;Math.abs(R)>40&&z(R<0?1:-1)},children:[x.map((j,T)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:T===0?"high":"low",loading:T===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:T===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,T)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(T),"aria-label":`${T+1}번째 사진`,"aria-current":T===g,className:`h-1.5 rounded-full bg-current transition-all ${T===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=La(s).slice(0,3),f=_n(s),d=Ke(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Lv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Qp(s){return Lv[s??""]??"default"}function vr(){return Qp(P().theme.templateId)}const mr=5,eu=1.8,Hv=3;function Bv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+eu)} { opacity: 0; } + ${o(r-eu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*mr+eu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Hs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:hu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function Gv(){const s=P(),r=xu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Bs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Vp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function bu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Vp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=La(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Bs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:v})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Kv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(ou,{className:"size-4"})]})]})]})})}function vu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Xs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function yu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(yu(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(yu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Zp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(yu(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function ju({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Nu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Su({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?ju:p==="oasi"?Nu:p==="studio"?Su:p==="pastel"?wu:p==="editorial"?bu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Eu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Eu(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Eu(f,m)})}function zu(s){return typeof s=="number"}function tu(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Tu(s){return Math.sign(s)}function Rs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Rs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function qs(s){return $s(s).map(Number)}function al(s){return s[Qs(s)]}function Qs(s){return Math.max(0,s.length-1)}function Au(s,r){return r===Qs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function $s(s){return Object.keys(s)}function Kp(s,r){return[s,r].reduce((o,u)=>($s(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Kp(d,m):m}),o),{})}function lu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return tu(s)?o[s](g):s(r,g,p)}return{measure:m}}function Ys(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Ys(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function v(){z(),f.clear()}function y(R){if(!g)return;m||(m=R,o(),o());const U=R-m;for(m=R,x+=U;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function N(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:v,start:N,stop:z,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(j){const{height:T,width:R}=j;return u?T:R}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Jp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),y}function p(N){return v().set(x()+N)}function v(){return Jp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function fy(s,r,o,u,f,d,m,x,g,p,v,y,N,z,j,T,R,U,G){const{cross:L,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Ys(),W=Ys(),le=Ra(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(Tu(te)*-1),tt=v.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,L),N.emit("pointerDown")))}function oe(te){if(!lu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,L),Nt=Rs(De,Xe),It=Rs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>T&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=iy(tt,Nt),nl=K-10*It,Bt=U+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function dy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(lu(y,r)?y:y.touches[0])[j]}function x(y){return u=y,f=y,m(y)}function g(y){const N=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),N}function p(y){if(!u||!f)return 0;const N=m(f)-m(u),z=d(y)-d(u),j=d(y)-d(f)>170,T=N/z;return z&&!j&&Ge(T)>.1?T:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function N(R){return f.measureSize(m.measure(R))}function z(R){if(!d)return;p=N(s),v=u.map(N);function U(G){for(const L of G){if(y)return;const Z=L.target===s,X=u.indexOf(L.target),V=Z?p:v[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){R.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(R,G))&&U(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){y=!0,g&&g.disconnect()}return{init:z,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=Tu(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function T(){return x}function R(){return m}function U(){return L(f)}function G(){return Z(d)}function L(V){return g=V,X}function Z(V){return p=V,X}const X={direction:T,duration:j,velocity:R,seek:N,settled:z,useBaseFriction:G,useBaseDuration:U,useFriction:Z,useDuration:L};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",T=Ge(s[j]-r.get()),R=o.get()-r.get(),U=x.constrain(T/m);o.subtract(R*U),!z&&Ge(R){const{min:R,max:U}=d,G=d.constrain(j),L=!T,Z=Au(o,T);return L?U:Z||p(R,G)?R:p(U,G)?U:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:T}=x;return m.slice(j,T)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function v(N){if(!p(N))return;const z=s*(N*-1);u.forEach(j=>j.add(z))}return{loop:v}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=N(),v=z();function y(){return x(u).map(T=>al(T)[m]-T[0][d]).map(Ge)}function N(){return u.map(T=>o[d]-T[d]).map(T=>-Ge(T))}function z(){return x(p).map(T=>T[0]).map((T,R)=>T+g[R])}return{snaps:p,snapsAligned:v}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const N=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?N:N.slice(x,g).map((j,T,R)=>{const U=!T,G=Au(R,T);if(U){const L=al(R[0])+1;return np(L)}if(G){const L=Qs(d)-al(R)[0]+1;return np(L,al(R)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((T,R)=>Ge(T)-Ge(R))[0]}function p(j){const T=s?m(j):x(j),R=r.map((G,L)=>({diff:v(G-T,0),index:L})).sort((G,L)=>Ge(G.diff)-Ge(L.diff)),{index:U}=R[0];return{index:U,distance:T}}function v(j,T){const R=[j,j+o,j-o];if(!s)return j;if(!T)return g(R);const U=R.filter(G=>Tu(G)===T);return U.length?g(U):al(R)-o}function y(j,T){const R=r[j]-f.get(),U=v(R,T);return{index:j,distance:U}}function N(j,T){const R=f.get()+j,{index:U,distance:G}=p(R),L=!s&&d(R);if(!T||L)return{index:U,distance:j};const Z=r[U]-G,X=j+v(Z,0);return{index:U,distance:X}}return{byDistance:N,byIndex:y,shortcut:v}}function Ey(s,r,o,u,f,d,m){function x(y){const N=y.distance,z=y.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,N){const z=f.byDistance(y,N);x(z)}function p(y,N){const z=r.clone().set(y),j=f.byIndex(z.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function j(T){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(L=>L.includes(T));zu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((T,R)=>{d.add(T,"focus",U=>{(yr(x)||x(z,U))&&j(R)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Ms(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return zu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Fp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const z=ry(s.direction(N));z!==f&&(u.transform=o(z),f=z)}function p(N){d=!N}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const v=qs(f),y=qs(f).reverse(),N=U().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function T(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function R(Y,W,le){const xe=T(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Ms(-1),translate:Fp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function U(){const Y=m[0],W=j(y,Y);return R(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(v,Y);return R(W,-o,!0)}function L(){return N.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:L,clear:X,loop:Z,loopPoints:N}}function Ay(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(T=>{const R=r.indexOf(T.target);f[R]=T}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function v(){x&&x.disconnect(),g=!0}function y(j){return $s(f).reduce((T,R)=>{const U=parseInt(R),{isIntersecting:G}=f[U];return(j&&G||!j&&!G)&&T.push(U),T},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const T=y(j);return j&&(d=T),j||(m=T),T}return{init:p,destroy:v,get:N}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=j(),y=T(),N=o.map(m),z=R();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function T(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function R(){return o.map((G,L,Z)=>{const X=!L,V=Au(Z,L);return X?N[L]+v:V?N[L]+y:Z[L+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:z,startGap:v,endGap:y}}function ky(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,N=zu(o);function z(U,G){return qs(U).filter(L=>L%G===0).map(L=>U.slice(L,L+G))}function j(U){return U.length?qs(U).reduce((G,L,Z)=>{const X=al(G)||0,V=X===0,Y=L===Qs(U),W=f[p]-d[X][p],le=f[p]-d[L][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(L),Y&&G.push(U.length),G},[]).map((G,L,Z)=>{const X=Math.max(Z[L-1]||0);return U.slice(X,G)}):[]}function T(U){return N?z(U,o):j(U)}return{groupSlides:T}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:N,dragFree:z,dragThreshold:j,inViewThreshold:T,slidesToScroll:R,skipSnaps:U,containScroll:G,watchResize:L,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,M,f),w=ky(ce,K,R,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,y),Te=Jp(Qs(oe),v,y),at=Te.clone(),Oe=qs(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Hn,options:{loop:sl}})=>{sl||Hn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Hn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:jr,animation:Nr,eventHandler:Js,scrollBounds:Ba,options:{loop:xa}},ga)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),Bl=xa?rl:rl&&qa,Fs=Bl&&!jr.pointerDown();Fs&&Nr.stop();const Ws=Hn.get()*ga+bt.get()*(1-ga);sl.set(Ws),xa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=oy(u,f,()=>te(Un),bl=>Ce(Un,bl)),tt=.68,Nt=oe[Te.get()],It=Ms(Nt),nl=Ms(Nt),Bt=Ms(Nt),Pt=Ms(Nt),gl=xy(It,Bt,nl,Pt,N,tt),On=wy(y,oe,F,ze,Pt),Dn=Ey(De,Te,at,gl,On,Pt,m),pt=jy(ze),Zs=Ys(),Ks=_y(r,o,m,T),{slideRegistry:Rn}=Sy(ie,G,oe,fe,w,Oe),Ha=zy(s,o,Rn,Dn,gl,Zs,m,V),Un={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Dn,gl,On,Te,m,he,z,j,U,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,L,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:On,scrollTo:Dn,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:Ay(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Rn,slidesToScroll:w,target:Pt,translate:Fp(ce,r)};return Un}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Kp(d,m||{})}function o(d){const m=d.breakpoints||{},x=$s(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>$s(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Ys(),g=Oy(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:N,off:z,emit:j}=g,T=ce;let R=!1,U,G=p(Dy,pr.globalOptions),L=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=L;V=(tu(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=tu(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){R||(G=p(G,Oe),L=v(G),Z=te||Z,W(),U=le(L),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),L.active&&(U.translate.to(U.location.get()),U.animation.init(),U.slidesInView.init(),U.slideFocus.init(at),U.eventHandler.init(at),U.resizeHandler.init(at),U.slidesHandler.init(at),U.options.loop&&U.slideLooper.loop(),V.offsetParent&&Y.length&&U.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){U.dragHandler.destroy(),U.eventStore.clear(),U.translate.clear(),U.slideLooper.clear(),U.resizeHandler.destroy(),U.slidesHandler.destroy(),U.slidesInView.destroy(),U.animation.destroy(),m.destroy(),x.clear()}function he(){R||(R=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!L.active||R||(U.scrollBody.useBaseFriction().useDuration(te===!0?0:L.duration),U.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=U.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=U.index.add(-1).get();Xe(te,Oe,1)}function Q(){return U.index.add(1).get()!==w()}function ae(){return U.index.add(-1).get()!==w()}function pe(){return U.scrollSnapList}function Ne(){return U.scrollProgress.get(U.offsetLocation.get())}function w(){return U.index.get()}function q(){return U.indexPrevious.get()}function J(){return U.slidesInView.get()}function F(){return U.slidesInView.get(!1)}function re(){return X}function fe(){return U}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:T,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function _u(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Eu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ny()&&m){pr.globalOptions=_u.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}_u.globalOptions=void 0;const Cu=4e3;function ku({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([T])=>{m=T.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const z=T=>{const R=T.target;!(R instanceof Element)||!R.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Wp(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function Vs({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Cu,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[N,z]=_u({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,T]=O.useState([]),[R,U]=O.useState(0),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!z)return;const ie=()=>{U(z.selectedScrollSnap()),L(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{T(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),O.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),ku({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=O.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=O.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=O.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===R,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===R?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[R+1," / ",j.length]})]})]})}function Mu({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Hl,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru({open:s,onClose:r,label:o,children:u,wide:f}){return O.useEffect(()=>{if(!s)return;const d=x=>{x.key==="Escape"&&r()},m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",d),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",d)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl px-5 pb-8 pt-14 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${f?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})}),u]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=xu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Go=s=>!s.note&&Hy.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,z;const s=P(),r=hu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||kv(s),f=s.links.filter(j=>{var T,R,U;return j.confirmed&&[(T=j.stayGuide)==null?void 0:T.policy,(R=j.stayGuide)==null?void 0:R.service,(U=j.stayGuide)==null?void 0:U.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var T;return((T=j.stayGuide)==null?void 0:T.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Go(j)?!1:By.has(j.label)||d.some(T=>T.key===j.key&&T.group==="rules"),p=f.map(j=>{var T;return((T=j.stayGuide)==null?void 0:T.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(up,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(up,{title:"시설 · 편의",rows:y.filter(j=>!Go(j)),children:n.jsx(Gy,{rows:y.filter(Go)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32))),n.jsx(Qy,{})]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Xo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Xo.has(u.value))-Number(Xo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Xo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(cu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Qy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Vy="/v1/site/booking-request";function Zy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Vy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(ks,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(ks,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(ks,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(ks,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(ks,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function ks({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Qo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Ky(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Vo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Fy(s){return du(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=$p(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function ex(){var ce;const s=P(),r=O.useMemo(()=>Fy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Jy(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Ky(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=O.useState(null),[N,z]=O.useState(null),[j,T]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[R,U]=O.useState(2),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||N));return O.useEffect(()=>{U(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Wy,{payload:s,onReset:()=>L(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null].filter(Boolean).join(" · "),guests:`${R}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null,`${R}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(ha,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Qo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>T(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>U(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[R,"명"]}),n.jsx("button",{type:"button",onClick:()=>U(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Vo(Y.name):""} · ${R}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>L(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Wy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(cu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Zy,{stay:o,guests:u})]})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:hu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(ju,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function t1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Nu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function l1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function a1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function n1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Bs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(bu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(s1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function s1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Zo(){var p;const s=P(),r=ht(s),o=Xp(s),[u,f]=O.useState(null),d=vr();if(d==="reservation")return n.jsx(e1,{});if(d==="oasi")return n.jsx(t1,{});if(d==="studio")return n.jsx(l1,{});if(d==="pastel")return n.jsx(a1,{});if(d==="editorial")return n.jsx(n1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Iy,{});if(m==="rooms.tabs")return n.jsx(Py,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(i1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Du,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(ha,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(N=>N.unitId===v.unitId);return n.jsx(Ru,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[n.jsx("h3",{className:"h3",children:v.name}),(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:gu(N)}),n.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]}),n.jsx(ex,{})]})]})},v.unitId)})]})}function i1({images:s,name:r}){return n.jsx(Vs,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Mu,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function r1(){const s=P(),r=Ke(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:gu(f)},f.url))]})})]})})}function mp(){const s=P(),r=Xp(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:gu(m)}),n.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(ex,{})]})})}function c1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function o1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Rp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:uu,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function u1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function f1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(lv()),[]),s}const d1=["봄","여름","가을","겨울"];function m1(){const s=P(),r=s.local.festivals,o=f1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=d1.filter(y=>r.some(N=>N.season===y)),m=r.filter(y=>{var N;return!((N=y.season)!=null&&N.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const N=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const N=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(hp,{items:N,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Vs,{label:r,children:s.map(d=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ru,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:u.name}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})})]})}const Us=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Us},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Us},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Us}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Us))}분`}function h1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:h1(s.distanceText)}function p1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(N=>y.test(fa(N))).length,g=pp.filter((y,N)=>N===0||x(y)>0&&x(y)y.id===f)??pp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[vu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Us,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const N=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:C0,places:o,within:v}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function x1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(x1,{icon:r,children:s}),n.jsx(Vs,{label:s,children:f.map(x=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ru,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:d.name}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function g1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function b1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const N=await y.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(z=>({temperature:Number(N.weather.temperature),condition:g1(Number(N.weather.weather_code)),note:z==null?void 0:z.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function v1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const y1={맑음:A0,흐림:i0,비:l0,눈:n0};function j1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function N1(){var y,N,z,j,T;const s=P(),r=b1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=v1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(T=f==null?void 0:f.tempNotes)==null?void 0:T[u]);if(!r)return null;const p=j1(r.observedAt),v=y1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function S1(){const s=P(),r=xu(s),o=s.theme.sections.find(T=>T.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useRef(null),[x,g]=O.useState(0),[p,v]=O.useState({prev:!1,next:!0}),y=O.useCallback(()=>{const T=m.current;if(!T)return;const R=T.clientWidth,U=T.scrollWidth-R;g(R>0?Math.round(T.scrollLeft/R):0),v({prev:T.scrollLeft>8,next:T.scrollLeft(y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),ku({box:m,interval:Cu,advance:()=>Wp(m.current,1)});const N=O.useCallback(T=>{const R=m.current;if(!R)return;const U=window.matchMedia("(prefers-reduced-motion: reduce)").matches;R.scrollBy({left:T*R.clientWidth,behavior:U?"auto":"smooth"})},[]),z=O.useCallback(()=>d(null),[]),j=O.useCallback(T=>d(R=>R===null?null:(R+T+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const T=U=>{U.key==="Escape"&&z(),U.key==="ArrowLeft"&&j(-1),U.key==="ArrowRight"&&j(1)},R=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",T),()=>{document.body.style.overflow=R,window.removeEventListener("keydown",T)}},[f,z,j]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:m,onScroll:y,className:"flex snap-x snap-mandatory gap-3 overflow-x-auto [touch-action:pan-y_pinch-zoom] [scrollbar-width:none] lg:grid lg:grid-cols-4 lg:gap-3 lg:snap-none lg:overflow-visible [&::-webkit-scrollbar]:hidden",children:r.map((T,R)=>n.jsx("li",{className:"w-full shrink-0 snap-center lg:w-auto",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-4/3 rounded-lg"})},T.mediaId))}),r.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(bp,{dir:"prev",show:p.prev,onClick:()=>N(-1)}),n.jsx(bp,{dir:"next",show:p.next,onClick:()=>N(1)}),n.jsxs("span",{className:"pointer-events-none absolute bottom-3 right-3 rounded-full bg-black/55 px-2.5 py-1 text-[length:var(--fs-xs)] font-semibold tabular-nums text-white lg:hidden",children:[Math.min(x+1,r.length)," / ",r.length]})]})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((T,R)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"rounded-lg",free:!0})},T.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((T,R)=>n.jsx("li",{children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-square rounded-lg"})},T.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:z,children:[n.jsx("button",{type:"button",onClick:z,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(vp,{dir:"prev",onClick:()=>j(-1)}),n.jsx(vp,{dir:"next",onClick:()=>j(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:T=>T.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,show:r,onClick:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:o,"aria-label":s==="prev"?"이전 사진":"다음 사진","aria-hidden":!r,tabIndex:r?0:-1,className:`absolute top-1/2 z-10 flex size-9 -translate-y-1/2 items-center justify-center rounded-full bg-black/45 text-white backdrop-blur-sm transition-opacity hover:bg-black/65 lg:hidden ${r?"opacity-100":"pointer-events-none opacity-0"} ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(u,{className:"size-5"})})}function vp({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Ko({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function yp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(cu,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Zp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function w1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=mu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Rp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function kn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(uu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function E1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?ju:x==="oasi"?Nu:x==="studio"?Su:x==="pastel"?wu:x==="editorial"?bu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Mn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Vs,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Gs(s,r,o){return`총 ${s}${o}`}const jp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function Np(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return jp[o%jp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":Np(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":Np(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function z1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Gs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(T1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function T1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Gs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Gs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Mn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Mn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Mn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"장"),children:n.jsx(Mn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function A1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Mn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Os=318,zn=168,Sp=34,_1=16,wp=4;function rx(s,r,o){const u=Ll*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function C1(s){if(s.length<2)return 15;for(let r=_1;r>wp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Os-Sp*2&&f<=zn-Sp*2)return r}return wp}function k1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!M1(f,x)?f:void 0}),f=x)}),u}function M1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function O1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function D1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Zp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function R1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=k1(s,o),d=C1(f),m=O1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Os/2,v=g-zn/2,y=2**d,N=[];for(let j=Math.floor(p/Ll);j<=Math.floor((p+Os)/Ll);j+=1)for(let T=Math.floor(v/Ll);T<=Math.floor((v+zn)/Ll);T+=1){if(T<0||T>=y)continue;const R=(j%y+y)%y;N.push({key:`${j}-${T}`,url:`https://tile.openstreetmap.org/${d}/${R}/${T}.png`,left:j*Ll-p,top:T*Ll-v})}const z=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Os,height:zn,viewBox:`0 0 ${Os} ${zn}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,T)=>{const R=m[T];return n.jsx("a",{href:D1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:R.x-p,top:R.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function U1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function au(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function L1(){return n.jsx("div",{className:"flex w-6 shrink-0 items-center self-stretch","aria-hidden":!0,children:n.jsx("span",{className:"w-full border-t-2 border-dashed",style:{borderColor:Se}})})}function H1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d}){const m=tv({name:s.name,startTime:o,stops:u}),[x,g]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&g(!0)},[]),n.jsxs("article",{className:"w4-paper w-[320px] shrink-0 snap-center border",style:{backgroundColor:Ft,borderColor:Se},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[m.from,"–",m.to," · ",U1(m.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",m.from]})]}),x&&n.jsx(R1,{stops:m.stops.map(p=>p.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:m.stops.map((p,v)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:p.time}),n.jsxs("div",{className:`border-l pl-3 ${x?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[p.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",p.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[p.stop.imageUrl&&x&&n.jsx("img",{src:p.stop.imageUrl,alt:`${p.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(E1,{n:v+1}),p.stop.name]}),p.stop.note&&n.jsx("span",{hidden:!x,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.stop.note})]})]}),n.jsxs("p",{hidden:!x,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[p.time,"–",p.until,p.stop.searchQuery&&` · 지도 검색 ${p.stop.searchQuery}`]})]})]},`${p.stop.name}-${v}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>g(p=>!p),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:x?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!x,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Jo="그 밖의 일정";function B1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>au(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Jo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var N;return(((N=y.duration)==null?void 0:N.trim())||Jo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(q1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Jo)===p}),placeName:s.place.name},x)},p))]})}function q1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=au(v).length,{item:v,start:y}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(Mn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>au(p).flatMap((y,N)=>{const z=n.jsx(H1,{item:p,badge:y.label??p.duration??`${N+1}일차`,startTime:y.startTime,stops:y.stops,first:N===0,placeName:o},`${p.name}-${v}-${N}`);return N===0?[z]:[n.jsx(L1,{},`${p.name}-${v}-c${N}`),z]}))})]})}function $1(){const s=P(),r=Wt(s,"video"),[o,u]=O.useState(),f=O.useRef(null),[d,m]=O.useState({prev:!1,next:!0}),x=O.useCallback(()=>{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(v=>{const y=f.current;if(!y)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(ku({box:f,interval:Cu,advance:()=>Wp(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] lg:grid lg:grid-cols-3 lg:gap-4 lg:snap-none lg:overflow-visible lg:pb-0 [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const N=V0(v.url),z=Z0(v.url),j=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[86%] snap-start sm:basis-[56%] lg:basis-auto":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:T=>{N&&(T.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Ep,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Ep,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Ep({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 lg:hidden ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Y1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},G1=s=>[{id:"songs",label:"가요 다방",Component:lx},{id:"people",label:"인물 열전",Component:ax},{id:"chronicle",label:"시간의 골목",Component:nx},{id:"reading",label:s,Component:sx},{id:"postcard",label:"오늘의 엽서",Component:ix}];function X1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=G1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Y1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const Q1={open:"진행 중",soon:"곧 시작",closed:"종료"};function zp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Fo(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Q1[r]}function Wo(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function V1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?zp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?zp(p,o):void 0,N=Fo(p,y),z=Wo(p),j=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&N!=="공지"?Ze:Ft,color:y==="open"&&N!=="공지"?ma:dl,borderColor:y==="open"&&N!=="공지"?Ze:Se},children:N}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Fo(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Fo(x,g)}),Wo(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Wo(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Z1={songs:lx,daily:z1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:A1,itinerary:B1,video:$1,event:V1,story:X1},K1="/v1/site/review",J1="/v1/site/reviews",Tp=5,Ap=500;function F1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[v,y]=O.useState(!1),[N,z]=O.useState(null),j=s.site.placeId,T=O.useCallback(async()=>{try{const G=await fetch(`${J1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const L=await G.json();Array.isArray(L==null?void 0:L.items)&&o(L.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),T()},[T]),O.useEffect(()=>{if(!v)return;u.current=Date.now();const G=Z=>{Z.key==="Escape"&&y(!1)},L=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",G),()=>{document.body.style.overflow=L,window.removeEventListener("keydown",G)}},[v]);async function R(G){if(G.preventDefault(),g)return;const L=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(K1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(L.get("nickname")??"")||null,consent:L.get("consent")==="on",company:String(L.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await T())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const U=Math.ceil(r.length/Tp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,L)=>n.jsxs("li",{hidden:Math.floor(L/Tp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(G.publishedAt)})]})]},G.reviewId))}),U>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:U},(G,L)=>n.jsx("button",{type:"button",onClick:()=>d(L),"aria-current":L===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:L===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:L+1},L))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),v&&n.jsxs("div",{className:"fixed inset-0 z-50",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:()=>y(!1),className:"absolute inset-0 bg-black/55"}),n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"후기 남기기",className:"absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8",style:{backgroundColor:"var(--color-surface)"},children:n.jsxs("form",{onSubmit:R,className:"flex flex-col gap-3",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ap,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ap,"자 · 전화번호와 이메일은 적지 말아 주세요"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"남기면 바로 올라갑니다. 공개되는 글이니 연락처는 적지 말아 주세요."}),n.jsx("button",{type:"button",onClick:()=>y(!1),className:"tap text-muted text-[length:var(--fs-sm)]",children:"닫기"})]})})]})]})}function W1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const nu=1080,Ds=4,mt=56,su=190,Io="#1b1a15",I1="#efe7d3",_p="#bf2f1b";function cx(s=nu){return s-mt-su-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function P1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const ej="/v1/image/relay?url=";async function tj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${ej}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function lj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Cp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=lj();d.clearRect(0,0,m,m),d.fillStyle=I1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await tj(r),v=m-mt*2,y=v/1.5,N=Math.max(v/g.width,y/g.height),z=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-j)/2,z,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const T=mt+y+36,R=m-mt-su,U=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(R,T),d.lineTo(R,m-mt-46),d.stroke(),d.fillStyle=Io,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,U),L=G.slice(0,Ds);if(G.length>Ds){let W=L[Ds-1];for(;W.length&&d.measureText(`${W}…`).width>U;)W=W.slice(0,-1);L[Ds-1]=`${W}…`}L.forEach((W,le)=>d.fillText(W,mt,T+50+le*60));const Z=R+su/2;d.strokeStyle=Io,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,T,88,108),d.setLineDash([]),d.fillStyle=Io,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,T+46),d.fillText("10원",Z,T+78),d.save(),d.translate(Z,T+210),d.rotate(-6*Math.PI/180),d.strokeStyle=_p,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=_p,d.font=`600 22px ${x}`;const X=P1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function aj(){const s=P(),r=(s.media??[]).filter(L=>L.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,v]=O.useState(!1),[y,N]=O.useState(!0);O.useEffect(()=>{var L;v(((L=window.matchMedia)==null?void 0:L.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const L=o.current,Z=r[u];if(!L||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,z,j,r]),O.useEffect(()=>{var X;const L=o.current,Z=r[u];!L||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N))},[]),r.length===0)return null;function T(L){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${L}”`,cx()).length<=Ds):!0}function R(){return new Promise(L=>{const Z=o.current;if(!Z)return L(null);Z.toBlob(X=>L(X),"image/png",.95)})}function U(L){const Z=URL.createObjectURL(L),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const L=await R();if(!L)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([L],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}U(L),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:nu,height:nu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Vs,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((L,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:L.url,alt:"",loading:"lazy",className:"size-full object-cover"})},L.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:L=>{T(L.target.value)&&m(L.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void R().then(L=>L&&U(L)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(rj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(cj,{}),n.jsx(kn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Ht(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const sj=24,ij="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function rj(){const s=P(),r=ux(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>sj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:ij},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function cj(){var p,v,y,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Hs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Hs(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]})]})})}const oj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,uj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function fj({children:s}){var v,y,N,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...La(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var T;return j.enabled&&((T=j.name)==null?void 0:T.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:uj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:oj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,T)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":T===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${T===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,T)=>n.jsxs("li",{className:"flex items-center gap-4",children:[T>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Hs(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Xs(r.site.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function dj({children:s}){var N,z,j,T;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=La(r),g=Ke(r)[0],p=mu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(R=>R.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(R=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:R.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:R.value})]},R.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(R=>n.jsx("li",{children:n.jsx("a",{href:R.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:R.label})},R.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((T=o.legal)==null?void 0:T.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Xs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(kn,{})]})}const mj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,hj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function pj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:hj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:mj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(uu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(kn,{})]})}function xj({children:s}){var p,v,y,N;const r=P(),{place:o,site:u}=r,f=Vp(),d=gj(f),m=Ke(r)[0],x=mu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Bs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const j=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Xs(u.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function gj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function bj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Ly,info:qy,rooms:Zo,menu:Zo,programs:Zo,booking:r?mp:r1,space:c1,inquiry:o1,exhibition:u1,photos:S1,festival:m1,local:p1,weather:N1,map:yp,faq:w1,...Z1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Ht(s,"map")&&n.jsx(yp,{}),r&&!Av(s,"booking")&&n.jsx(mp,{}),!Ht(s,"intro")&&n.jsx(op,{}),n.jsx(F1,{}),n.jsx(aj,{}),Ht(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(W1,{})})]})}function iu({payload:s}){const r=Qp(s.theme.templateId),o=r==="reservation"?nj:r==="oasi"?fj:r==="studio"?dj:r==="pastel"?pj:r==="editorial"?xj:vj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(bj,{})})})}function vj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(kn,{})]})}function yj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const jj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Nj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${jj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),Mp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Sj(){return O.useEffect(()=>Uu(!0),[]),null}async function wj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(yj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Nj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}Po.createRoot(hr).render(n.jsxs(O.StrictMode,{children:[n.jsx(iu,{payload:u}),n.jsx(Sj,{})]})),Uu(!0)}const Op=new URLSearchParams(window.location.search).get("placeId");Mp?Po.hydrateRoot(hr,n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:Mp})})):Op?wj(Op).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-Dg3hcWCl.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{Po.createRoot(hr).render(n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:s})}))});export{Vh as F,it as L,da as P,$0 as S,Ej as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-BuTQ13Xf.css b/solution/site/scripts/mockup/vendor/retired/index-BuTQ13Xf.css new file mode 100644 index 0000000..cde252c --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-BuTQ13Xf.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-Bv_4aeuB.js b/solution/site/scripts/mockup/vendor/retired/index-Bv_4aeuB.js new file mode 100644 index 0000000..3338540 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-Bv_4aeuB.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Nb="modulepreload",Sb=function(s){return"/"+s},Oh={},wb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Sb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":Nb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Eb(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function zb(){return Rh||(Rh=1,$o.exports=Eb()),$o.exports}var n=zb(),Go={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Tb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new Y;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var G={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,G=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){G=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(Y(G),G=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||w||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Bh;function _b(){return Bh||(Bh=1,Xo.exports=Ab()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Cb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Mb(){if(Gh)return Os;Gh=1;var s=_b(),r=fu(),o=kb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,La=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,zr=Math.log,Tr=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ba=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{qr=!1}var Gl=null,$r=null,ai=null;function lf(){if(ai)return ai;var e,t=$r,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Fa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ai=$r=Gl=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Fr=null,Pn=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Wa==null||Wa!==ti(a)||(a=Wa,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(jb){return t(T,jb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function rs(){if(vc){var e=rn;if(e!==null)throw e}}function cs(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=nr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Cr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,bn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=Gc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&vn(e,0):io|=l,gn===ve&&(gn=0)),fl(e)}function Ym(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Rg(e,t){return Pt(e,t)}var Zi=null,jn=null,po=!1,Ki=!1,xo=!1,na=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Zi=jn=e:jn=jn.next=e),Ki=!0,po||(po=!0,Hg())}function Ns(e,t){if(!xo&&Ki){xo=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ki=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function lb(e){Ul.D(e),mh("dns-prefetch",e,null)}function ab(e,t){Ul.C(e,t),mh("preconnect",e,t)}function nb(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function sb(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function ib(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function rb(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function cb(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ob(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ob(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ub(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function db(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(mb,e),lr=null,tr.call(e))}function mb(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=Mb(),Yo.exports}var au=Ob();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Db=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Rb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Ub=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!Ub(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Lb,{ref:d,iconNode:r,className:Op(`lucide-${Db(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$b=_e("bed-double",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Yb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Qb=_e("calendar-days",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Zb=_e("car",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pb=_e("clock",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],t0=_e("cloud-rain",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],a0=_e("cloud-snow",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],s0=_e("cloud",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r0=_e("copy",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],o0=_e("external-link",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],f0=_e("instagram",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M5 12h14",key:"1ays0h"}]],g0=_e("minus",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],j0=_e("play",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S0=_e("plus",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],E0=_e("rotate-ccw",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T0=_e("sun",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_0=_e("utensils",A0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],M0=_e("youtube",k0),Up=O.createContext(null);function O0({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function D0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function B0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),N=O.useRef(null),w=O.useRef(null),j=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),G={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)G.left="8px",G.right="8px";else{G.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();G.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(G)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=G=>{var le,xe;const W=G.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(X=o)=>{const V=N.current,G=r[X];!V||!G||(V.getAttribute("src")!==G.audioUrl&&(V.src=G.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),Y(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(D0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(U0,{}):n.jsx(R0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(L0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},q0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return $0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const X0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Q0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function V0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Z0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function K0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function J0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function F0(s,r){const o=X0[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:J0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const W0=1260,I0=60,P0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(P0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??I0),g=u+m;if(g+x>W0){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Y0(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=F0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return Cn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return Cn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return Cn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return Cn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Nv).slice(0,4)}function kn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function yr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Ev),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return wv(s,Sv)}function yt(s,r){const o=Tn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(B0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function jr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var A;return(A=j.alt)==null?void 0:A.trim()}).sort((j,A)=>Number(A.isPrimary)-Number(j.isPrimary)).slice(0,Ov),[g,p]=O.useState(0),[y,v]=O.useState(!1),N=O.useRef(null),w=O.useCallback(j=>p(A=>(A+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Mv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const A=N.current;if(N.current=null,A===null)return;const L=j.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,A)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=kn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Uv[s??""]??"default"}function Nr(){return Yp(P().theme.templateId)}const pr=5,nu=1.8,Hv=3;function Lv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*pr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Tn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=jr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=jr(s),f=ht(s),d=pl(s),m=Ha(s),x=kn(s),g=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=Nr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=jr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Nr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:_u(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function Sr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Ls(s,r){return Ye(s-r)}function sy(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Ls(Ye(s),Ye(r));return Ye(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Ys(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:A,width:L}=j;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Da(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,A,L,H,Y){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},G=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!Y)return;function Ce(tt){(Sr(Y)||Y(te,tt))&&fe(tt)}const De=r;G.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){G.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,A=N/w;return w&&!j&&Ye(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],G=N(Z?s:u[X]);if(Ye(G-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(Sr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),G=!g;let W=0;return G?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ye(V)<.001}function j(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function Y(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",A=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!A,Z=Mu(o,A);return R?H:Z||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:A}=x;return m.slice(j,A)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ye)}function N(){return u.map(A=>o[d]-A[d]).map(A=>-Ye(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,A,L)=>{const H=!A,Y=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((A,L)=>Ye(A)-Ye(L))[0]}function p(j){const A=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-A,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(j,A){const L=[j,j+o,j-o];if(!s)return j;if(!A)return g(L);const H=L.filter(Y=>ku(Y)===A);return H.length?g(H):al(L)-o}function v(j,A){const L=r[j]-f.get(),H=y(L,A);return{index:j,distance:H}}function N(j,A){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:j};const Z=r[H]-Y,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(A));Cu(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Sr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Cu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=iy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(Y());function w(G,W){return G.reduce((le,xe)=>le-f[xe],W)}function j(G,W){return G.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(G){return d.map((W,le)=>({start:W-u[le]+.5+G,end:W+r-.5+G}))}function L(G,W,le){const xe=A(W);return G.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const G=m[0],W=j(v,G);return L(W,o,!1)}function Y(){const G=r-m[0]-1,W=j(y,G);return L(W,-o,!0)}function R(){return N.every(({index:G})=>{const W=y.filter(le=>le!==G);return w(W,r)<=.1})}function Z(){N.forEach(G=>{const{target:W,translate:le,slideLocation:xe}=G,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(G=>G.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Sr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&A.push(H),A},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const A=v(j);return j&&(d=A),j||(m=A),A}return{init:p,destroy:y,get:N}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=A(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function A(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Z)=>{const X=!R,V=Mu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=Cu(o);function w(H,Y){return Gs(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Gs(H).reduce((Y,R,Z)=>{const X=al(Y)||0,V=X===0,G=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&G?v(x):0,K=Ye(le-ce-(W+xe));return Z&&K>r+g&&Y.push(R),G&&Y.push(H.length),Y},[]).map((Y,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,Y)}):[]}function A(H){return N?w(H,o):j(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,G=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(g,p),K=ce.measureSize(le),he=my(K),Xe=ry(x,K),ie=!v&&!!Y,M=v||!!Y,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,G),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,Y,G),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(bl.pointerDown()),qn.seek()},Ce=({scrollBody:bl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Fs,scrollBounds:Ba,options:{loop:pa}},xa)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),ql=pa?rl:rl&&qa,Ws=ql&&!zr.pointerDown();Ws&&Tr.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=cy(u,f,()=>te(Bn),bl=>Ce(Bn,bl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),gl=py(It,Bt,nl,Pt,N,tt),Un=Sy(v,oe,F,ze,Pt),Hn=wy(De,Te,at,gl,Un,Pt,m),pt=yy(ze),Ks=Xs(),Js=Ay(r,o,m,A),{slideRegistry:Ln}=Ny(ie,Y,oe,fe,E,Oe),La=Ey(s,o,Ln,Hn,gl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Hn,gl,Un,Te,m,he,w,j,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:La,slidesHandler:Ty(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Xs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,A=ce;let L=!1,H,Y=p(Oy,gr.globalOptions),R=p(Y),Z=[],X,V,G;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;G=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,G,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(Y=p(Y,Oe),R=y(Y),Z=te||Z,W(),H=le(R),v([Y,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&G.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return G}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{_u(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ay()&&m){gr.globalOptions=Ou.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,A]=O.useState([]),[L,H]=O.useState(0),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),G=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:G,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":G,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function wr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),f]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,w;const s=P(),r=bu(s),o=_n(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var A,L,H;return j.confirmed&&[(A=j.stayGuide)==null?void 0:A.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var A;return((A=j.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:By.has(j.label)||d.some(A=>A.key===j.key&&A.group==="rules"),p=f.map(j=>{var A;return((A=j.stayGuide)==null?void 0:A.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Yy,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),$y="#16a34a",Gy="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?$y:Gy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[N,w]=O.useState(null),[j,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,G=r.find(K=>K.unitId===j)??null,W=(G==null?void 0:G.maxCapacity)??8,le=V&&G?V.isWeekend?G.weekendPrice??G.weekdayPrice:G.weekdayPrice:void 0,xe=!!(y&&G&&(u.length===0||N));return O.useEffect(()=>{H(K=>Math.min(K,(G==null?void 0:G.maxCapacity)??8))},[G]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Qb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!Y?null:Y?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,G?Wo(G.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,G?Wo(G.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Pb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(g0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(S0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${G?Wo(G.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(E0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=yr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=Nr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(s1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(Ra,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function s1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(wr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function mp(){const s=P(),r=yr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Yb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($b,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function r1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=pp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:_0,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(x=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(da(x))&&` · ${mr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:x1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:T0,흐림:s0,비:t0,눈:a0};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,N,w,j,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=y=>{y.key==="Escape"&&m(),y.key==="ArrowLeft"&&x(-1),y.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(wr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(bp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(r0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===q0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:Tn(u)}),n.jsx(o0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Nr(),g=O.useContext(ex),p=x==="reservation"?Eu:x==="oasi"?zu:x==="studio"?Tu:x==="pastel"?Au:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(M0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(g),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Us=318,zn=168,Np=34,A1=16,Sp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>Sp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=zn-Np*2)return r}return Sp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(j=>ix(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Us/2,y=g-zn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Us)/Hl);j+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+zn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:j*Hl-p,top:A*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:zn,viewBox:`0 0 ${Us} ${zn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,A)=>{const L=m[A];return n.jsx("a",{href:O1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx(U1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=Q0(y.url),w=V0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:K0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{N&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:Z0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(j0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:tx},{id:"people",label:"인물 열전",Component:lx},{id:"chronicle",label:"시간의 골목",Component:ax},{id:"reading",label:s,Component:nx},{id:"postcard",label:"오늘의 엽서",Component:sx}];function G1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Y1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Y1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=v=>{v.key==="Escape"&&m()},y=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=y,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Ep(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ma:ml,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:tx,daily:E1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:T1,itinerary:H1,video:B1,event:X1,story:G1},V1="/v1/site/review",Z1="/v1/site/reviews",zp=5,Tp=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[N,w]=O.useState(null),j=s.site.placeId,A=O.useCallback(async()=>{try{const Y=await fetch(`${Z1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",F1="#efe7d3",Ap="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Hs);if(Y.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const G=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,G-20),d.lineTo(m-mt,G-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,G+6),p}const Cp="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,N]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function Y(){var V,G;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((G=navigator.canShare)!=null&&G.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Dn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],x=Mn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Tn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Tn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var A;return j.enabled&&((A=j.name)==null?void 0:A.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,A)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Tn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function uj({children:s}){var N,w,j,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(f0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function hj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Xp(),d=pj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:qy,rooms:Io,menu:Io,programs:Io,booking:r?mp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:vp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!Tv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function uu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(O0,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Uu(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(jj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?au.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:kp})})):Mp?Nj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):wb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-cqYvje8v.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,q0 as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-COCGeTYh.css b/solution/site/scripts/mockup/vendor/retired/index-COCGeTYh.css new file mode 100644 index 0000000..68c99bb --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-COCGeTYh.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-\[190px\]{flex-basis:190px}.basis-\[225px\]{flex-basis:225px}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-CVSUiGp0.js b/solution/site/scripts/mockup/vendor/retired/index-CVSUiGp0.js new file mode 100644 index 0000000..078e82a --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-CVSUiGp0.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":Sb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function kb(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new G;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(g)&&u(g),Z(O)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(g,O),j||w||(j=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=N;return function(){var ae=N;N=Q;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Lh;function Ab(){return Lh||(Lh=1,Xo.exports=_b()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function Cb(){if(Bh)return xt;Bh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function Ob(){if($h)return Ds;$h=1;var s=Ab(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Af(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return kd(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function _d(){return Je().memoizedState}function Ad(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Od(l,t,a)))}function Cd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{fm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,jm(c.current),bm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Cp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Cp("lucide",f),...!d&&!Hb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:Cp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Xh(g.now)}${g.total?` / ${Xh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},kj={PUBLISHED:3};function An(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,x,g]=Kh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return Cn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return Cn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return Cn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return Cn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function kv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var k;return(k=j.alt)==null?void 0:k.trim()}).sort((j,k)=>Number(k.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(k=>(k+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Ov);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const k=N.current;if(N.current=null,k===null)return;const L=j.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,k)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===g,className:`h-1.5 rounded-full bg-current transition-all ${k===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Lv),g=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!ep(x)||!ep(g)?x===g:ku(x,g)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=lp(d)&&lp(m);o[f]=x?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:k,width:L}=j;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Vp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,k,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ae(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,k=N/w;return w&&!j&&Ge(k)>.1?k:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function k(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:k,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",k=Ge(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(k/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(j),R=!k,Z=Cu(o,k);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:k}=x;return m.slice(j,k)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function N(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return x(p).map(k=>k[0]).map((k,L)=>k+g[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,k,L)=>{const H=!k,G=Cu(L,k);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((k,L)=>Ge(k)-Ge(L))[0]}function p(j){const k=s?m(j):x(j),L=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(j,k){const L=[j,j+o,j-o];if(!s)return j;if(!k)return g(L);const H=L.filter(G=>Au(G)===k);return H.length?g(H):al(L)-o}function v(j,k){const L=r[j]-f.get(),H=y(L,k);return{index:j,distance:H}}function N(j,k){const L=f.get()+j,{index:H,distance:G}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:j};const Z=r[H]-G,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=ry(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=j(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(y,Y);return L(W,-o,!0)}function R(){return N.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function ky(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(j&&G||!j&&!G)&&k.push(H),k},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const k=v(j);return j&&(d=k),j||(m=k),k}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=k(),N=o.map(m),w=L();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function j(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function k(H){return N?w(H,o):j(H)}return{groupSlides:k}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,O,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,N,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=_y(r,o,m,k),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,j,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:ky(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Qs(),g=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,k=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>x.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,k]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(g);le.current=g;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,M.useEffect(()=>{if(!s)return;const x=j=>{j.key==="Escape"&&m.current()},g=window.scrollY,p=document.body,y=p.style.position,v=p.style.top,N=p.style.width,w=p.style.overflow;return p.style.position="fixed",p.style.top=`-${g}px`,p.style.width="100%",p.style.overflow="hidden",window.addEventListener("keydown",x),()=>{p.style.position=y,p.style.top=v,p.style.width=N,p.style.overflow=w,window.scrollTo(0,g),window.removeEventListener("keydown",x)}},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Qy(){var N,w;const s=P(),r=bu(s),o=An(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var k,L,H;return j.confirmed&&[(k=j.stayGuide)==null?void 0:k.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var k;return((k=j.stayGuide)==null?void 0:k.fields)??[]}),m=Xy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Gy.has(j.label)||d.some(k=>k.key===j.key&&k.group==="rules"),p=f.map(j=>{var k;return((k=j.stayGuide)==null?void 0:k.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Ky,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Jy,{text:j},j.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Vy="#16a34a",Zy="#e04b25";function Ky({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Vy:Zy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Jy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Fy="/v1/site/booking-request";function Wy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Fy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Iy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function e1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>e1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Py(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Iy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||N));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(t1,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function t1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Wy,{stay:o,guests:u})]})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function i1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function c1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(o1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function o1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(n1,{});if(x==="oasi")return n.jsx(s1,{});if(x==="studio")return n.jsx(i1,{});if(x==="pastel")return n.jsx(r1,{});if(x==="editorial")return n.jsx(c1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(l1,{});if(g==="rooms.tabs")return n.jsx(a1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(u1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function u1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function f1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function d1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function m1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function h1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function p1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const x1=["봄","여름","가을","겨울"];function g1(){const s=P(),r=s.local.festivals,o=p1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=x1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function b1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:b1(s.distanceText)}function v1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=mp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function y1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(y1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function j1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:j1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:k0,흐림:i0,비:l0,눈:n0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,N,w,j,k;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=S1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const g=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&x(-1),k.key==="ArrowRight"&&x(1)},p=window.scrollY,y=document.body,v=y.style.position,N=y.style.top,w=y.style.width,j=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",g),()=>{y.style.position=v,y.style.top=N,y.style.width=w,y.style.overflow=j,window.scrollTo(0,p),window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function k1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function _1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(tx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function A1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(C1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,O1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!U1(f,x)?f:void 0}),f=x)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function L1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:j*Hl-p,top:k*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,k)=>{const L=m[k];return n.jsx("a",{href:L1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",q1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(B1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Y1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(G1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function G1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx($1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=V0(y.url),w=Z0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{N&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function Z1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:g.label},g.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,N=v.style.position,w=v.style.top,j=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=N,v.style.top=w,v.style.width=j,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:lx,daily:A1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:M1,itinerary:Y1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",wp=5,Ep=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,k=M.useCallback(async()=>{try{const G=await fetch(`${I1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=lj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var k;return j.enabled&&((k=j.name)==null?void 0:k.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,k)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var N,w,j,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Qy,rooms:Io,menu:Io,programs:Io,booking:r?fp:f1,space:d1,inquiry:m1,exhibition:h1,photos:T1,festival:g1,local:v1,weather:z1,map:gp,faq:k1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!kv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Ru(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Ru(!0)}const Ap=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:_p})})):Ap?Tj(Ap).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-B6bjlS-i.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,kj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-CXe-X1sJ.js b/solution/site/scripts/mockup/vendor/retired/index-CXe-X1sJ.js new file mode 100644 index 0000000..81adf15 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-CXe-X1sJ.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Mh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function E0(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function z0(){return Dh||(Dh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function T0(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(O){if(A=!1,Z(O),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(x)&&u(x),Z(O)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(x)===null&&O===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(x,O),N||w||(N=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=j;return function(){var ae=j;j=Q;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Lh;function C0(){return Lh||(Lh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function _0(){if(Bh)return xt;Bh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=_0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function M0(){if($h)return Ds;$h=1;var s=C0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Cs._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Vx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Zx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,C[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===C.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=C.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=C.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,C,B){if(typeof C=="object"&&C!==null&&C.type===A&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:e:{for(var ne=C.key;z!==null;){if(z.key===ne){if(ne=C.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,C.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===z.type){l(T,z.sibling),B=i(z,C.props),is(B,C),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}C.type===A?(B=Sa(C.props.children,T.mode,B,C.key),B.return=T,T=B):(B=hi(C.type,C.key,C.props,null,T.mode,B),is(B,C),B.return=T,T=B)}return h(T);case N:e:{for(ne=C.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===C.containerInfo&&z.stateNode.implementation===C.implementation){l(T,z.sibling),B=i(z,C.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(C,T.mode,B),B.return=T,T=B}return h(T);case W:return C=Aa(C),He(T,z,C,B)}if(ie(C))return I(T,z,C,B);if(K(C)){if(ne=K(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),se(T,z,C,B)}if(typeof C.then=="function")return He(T,z,ji(C),B);if(C.$$typeof===R)return He(T,z,gi(T,C),B);Ni(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,C),B.return=T,T=B):(l(T,z),B=ac(C,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,C,B){try{ss=0;var ne=He(T,z,C,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),_f(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),_=O.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?xg:function(){return Ad(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(Cs)}function Cd(){return Je().memoizedState}function _d(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Od(l,t,a)))}function kd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:Ai,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=kd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Cl(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)kf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++_===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var C=$.createRange();C.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(C),D.extend(z.node,z.offset)):(C.setEnd(z.node,z.offset),D.addRange(C))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{fm(e,t.alternate,t)}finally{Ae=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,jm(c.current),bm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Rg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Hg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),dh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),dh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(As(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(As(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function As(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(As(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(m0,e),ar=null,lr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>M.createElement("svg",{ref:x,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!U0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ce=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(L0,{ref:d,iconNode:r,className:kp(`lucide-${D0(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=Ce("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=Ce("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=Ce("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=Ce("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=Ce("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=Ce("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=Ce("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cn=Ce("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=Ce("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=Ce("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=Ce("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=Ce("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=Ce("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=Ce("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=Ce("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=Ce("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=Ce("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=Ce("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=Ce("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=Ce("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=Ce("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=Ce("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=Ce("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=Ce("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=Ce("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=Ce("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=Ce("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Cb=Ce("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _b=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=Ce("x",_b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=Ce("youtube",kb),Dp=M.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,g]=M.useState(!1),[x,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),j=M.useRef(null),w=M.useRef(null),N=M.useRef(null),A=r.length;M.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Xh(x.now)}${x.total?` / ${Xh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Tj={PUBLISHED:3};function _n(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Zh(s.startTime??"")??Zh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??Ib),x=u+m;if(x+g>Wb){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,g,x]=Kh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function lv(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=Ct(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=Ct(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=An(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Cv;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[x,p]=M.useState(0),[y,v]=M.useState(!1),j=M.useRef(null),w=M.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return M.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Uv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Hv),x=f?{href:f.url,label:`${An(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:g||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!ep(g)||!ep(x)?g===x:Au(g,x)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=lp(d)&&lp(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(_u(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=_u(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Ra(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=ku(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Ra(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=ku(L,A);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>_u(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Ey(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return Cu(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function zy(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=ku(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(x,p),K=ce.measureSize(le),he=my(K),Xe=ry(g,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,O,f),E=_y(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=cy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,j,tt),Hn=Sy(v,oe,F,ze,Pt),Ln=wy(De,Te,at,gl,Hn,Pt,m),pt=yy(ze),Js=Qs(),Fs=Ay(r,o,m,A),{slideRegistry:Bn}=Ny(ie,G,oe,fe,E,Oe),Ba=Ey(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),g=Qs(),x=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Oy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,g]=M.useState(),x=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{Au(o.current,s)||(o.current=s,x())},[s,x]),M.useEffect(()=>{ny(u.current,r)||(u.current=r,x())},[r,x]),M.useEffect(()=>{if(ay()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{A(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(x);le.current=x;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return M.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function qy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[190px]",children:n.jsx($y,{post:o})},o.postId))})})}function $y({post:s}){const[r,o]=M.useState(!1),{month:u,day:f,weekday:d}=qy(s.publishedAt),m=By(u),g=Ly[m],x=`${u}월 ${f}일 · ${d}`;return n.jsxs(n.Fragment,{children:[n.jsxs("button",{type:"button",onClick:()=>o(!0),className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${g} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:g},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]}),n.jsx(ma,{open:r,onClose:()=>o(!1),label:`미니 블로그 · ${x}`,title:x,children:n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:s.body})})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Ky,{text:N},N.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,g]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=up(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>Py(s),[s]),o=M.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Iy(o),[o]),[f,d]=M.useState(null),[m,g]=M.useState(0);M.useEffect(()=>d(new Date),[]);const x=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&x?Wy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=M.useState(null),[j,w]=M.useState(null),[N,A]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Cn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),g=Sr();if(g==="reservation")return n.jsx(a1,{});if(g==="oasi")return n.jsx(n1,{});if(g==="studio")return n.jsx(s1,{});if(g==="pastel")return n.jsx(i1,{});if(g==="editorial")return n.jsx(r1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(t1,{});if(x==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(o1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(ma,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=mp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:Cb,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function y1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function j1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:y1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function N1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,g=o!=null&&o.length?pp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const S1={맑음:Tb,흐림:sb,비:tb,눈:ab};function w1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function E1(){var v,j,w,N,A;const s=P(),r=j1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=N1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=w1(r.observedAt),y=S1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function z1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),g=M.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(xp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=Pv(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function T1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:An(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=M.useContext(ex),p=g==="reservation"?wu:g==="oasi"?Eu:g==="studio"?zu:g==="pastel"?Tu:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Jv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(_1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function _1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function k1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,M1=16,jp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function O1(s){if(s.length<2)return 15;for(let r=M1;r>jp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function D1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!R1(f,g)?f:void 0}),f=g)}),u}function R1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function U1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function H1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function L1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=D1(s,o),d=O1(f),m=U1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+Tn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:H1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function B1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function q1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=ev({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",B1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(L1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function $1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),g=M.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(q1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=M.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const X1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Q1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function V1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",X1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Z1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Z1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function K1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Sp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ha:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const J1={songs:tx,daily:C1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:k1,itinerary:$1,video:G1,event:K1,story:V1},F1="/v1/site/review",W1="/v1/site/reviews",wp=5,Ep=500;function I1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,g]=M.useState(""),[x,p]=M.useState(!1),[y,v]=M.useState(!1),[j,w]=M.useState(null),N=s.site.placeId,A=M.useCallback(async()=>{try{const G=await fetch(`${W1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);M.useEffect(()=>{u.current=Date.now(),A()},[A]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(F1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function P1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",ej="#efe7d3",zp="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function tj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const lj="/v1/image/relay?url=";async function aj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${lj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function nj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=nj();d.clearRect(0,0,m,m),d.fillStyle=ej,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await aj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${g}`;const X=tj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function sj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[g,x]=M.useState(""),[p,y]=M.useState(!1),[v,j]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function ij({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(oj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(uj,{}),n.jsx(Rn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const rj=24,cj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function oj(){const s=P(),r=ox(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>rj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:cj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function uj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:An(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:An(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const fj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,dj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function mj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:An(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function hj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const pj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,xj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function gj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:xj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:pj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Rn,{})]})}function bj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Yp(),d=vj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function vj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function yj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?fp:u1,space:f1,inquiry:d1,exhibition:m1,photos:z1,festival:x1,local:b1,weather:E1,map:gp,faq:T1,...J1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!Tv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(I1,{}),n.jsx(sj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(P1,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?ij:r==="oasi"?mj:r==="studio"?hj:r==="pastel"?gj:r==="editorial"?bj:jj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(yj,{})})})}function jj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Rn,{})]})}function Nj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Sj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function wj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Sj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Ej(){return M.useEffect(()=>Ru(!0),[]),null}async function zj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Nj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=wj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Ej,{})]})),Ru(!0)}const _p=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Cp})})):_p?zj(_p).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CH2osEsx.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,qb as S,Tj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-CrcjT5pX.css b/solution/site/scripts/mockup/vendor/retired/index-CrcjT5pX.css new file mode 100644 index 0000000..40f45a2 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-CrcjT5pX.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-CysCdRRX.js b/solution/site/scripts/mockup/vendor/retired/index-CysCdRRX.js new file mode 100644 index 0000000..49842ce --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-CysCdRRX.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Oh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Oh)return;Oh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":Sb,v||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),v)return new Promise((z,j)=>{N.addEventListener("load",z),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Uo={exports:{}},_s={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return _s;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return _s.Fragment=r,_s.jsx=o,_s.jsxs=o,_s}var Rh;function Tb(){return Rh||(Rh=1,Uo.exports=zb()),Uo.exports}var n=Tb(),Lo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),N=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function U(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}U.prototype.isReactComponent={},U.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},U.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=U.prototype;function L(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}var Z=L.prototype=new G;Z.constructor=L,T(Z,U.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,N=3,z=!1,j=!1,T=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(T=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return R?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,N=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,N=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof L=="function")K=function(){L(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){U(ce,0)};function ie(M,Q){Y=U(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(T?(G(Y),Y=-1):T=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||z||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(qo)),qo}var Bh;function Cb(){return Bh||(Bh=1,Bo.exports=_b()),Bo.exports}var $o={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return xt;qh=1;var s=ru();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=kb(),$o.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function Ob(){if(Yh)return Cs;Yh=1;var s=Cb(),r=ru(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Es._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var H=` +`+S[a].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,On=s.unstable_shouldYield,Dn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Rn=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Un=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Hn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Hn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,jr=Math.log,Nr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(jr(e)/Nr|0)|0}var Ba=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Sr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _r(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Cr(e,h,qt(t)):l!=null?Cr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ar(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ar(e)}function Cr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rr=!1;if(jl)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Rr=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Rr=!1}var $l=null,Ur=null,li=null;function lf(){if(li)return li;var e,t=Ur,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Vn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Zx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Kx(e,t){if(Fa)return e==="compositionend"||!$r&&ff(e,t)?(e=lf(),li=Ur=$l=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Qr=null,Fn=null,Vr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vr||Wa==null||Wa!==ei(a)||(a=Wa,"selectionStart"in a&&Xr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fn&&Jn(Fn,a)||(Fn=a,a=Ji(Qr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(A,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(A,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(A,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(A,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,A,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(A,oa)}),je&&Sl(A,me),ne}function se(A,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(A,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(A,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(A,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(A,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,A,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(A,Nb)}),je&&Sl(A,me),ne}function Le(A,E,_,B){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===T){if(E.tag===7){l(A,E.sibling),B=i(E,_.props.children),B.return=A,A=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===E.type){l(A,E.sibling),B=i(E,_.props),ls(B,_),B.return=A,A=B;break e}l(A,E);break}else t(A,E);E=E.sibling}_.type===T?(B=Sa(_.props.children,A.mode,B,_.key),B.return=A,A=B):(B=di(_.type,_.key,_.props,null,A.mode,B),ls(B,_),B.return=A,A=B)}return h(A);case j:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(A,E.sibling),B=i(E,_.children||[]),B.return=A,A=B;break e}else{l(A,E);break}else t(A,E);E=E.sibling}B=Pr(_,A.mode,B),B.return=A,A=B}return h(A);case W:return _=Aa(_),Le(A,E,_,B)}if(ie(_))return I(A,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(A,E,_,B)}if(typeof _.then=="function")return Le(A,E,vi(_),B);if(_.$$typeof===L)return Le(A,E,pi(A,_),B);yi(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(A,E.sibling),B=i(E,_),B.return=A,A=B):(l(A,E),B=Ir(_,A.mode,B),B.return=A,A=B),h(A)):l(A,E)}return function(A,E,_,B){try{ts=0;var ne=Le(A,E,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===gi)throw ee;var we=Mt(29,ee,null,A.mode);return we.lanes=B,we.return=A,we}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Vl=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),kf(e,null,l),t}return ui(e,a,t,l),fi(e)}function as(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function mc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var hc=!1;function ns(){if(hc){var e=rn;if(e!==null)throw e}}function ss(e,t,l,a){hc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==h&&(b===null?H.firstBaseUpdate=C:b.next=C,H.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,H=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(hc=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var Le=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(Le,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(Le,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(C=H=D,S=$):H=H.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);H===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=H,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Oc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=fg(S,a);cs(e,t,H,Lt(e))}else cs(e,t,a,Lt(e))}catch($){cs(e,t,{then:function(){},status:"rejected",reason:$},Lt())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function gg(){}function kc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?gg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Lt())}function Mc(){return ut(Es)}function Cd(){return Fe().memoizedState}function kd(){return Fe().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),as(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Od(t,l):(l=Fr(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Lt();cs(e,t,l,a)}function cs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),He===null&&oi(),!1}catch{}finally{}if(l=Fr(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Oc(e,t,l,a){if(a={lane:2,revertLane:fo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Fr(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var os={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};os.useEffectEvent=Qe;var Rd={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(e,t){var l=yt();return Cc(l,e,t)},useTransition:function(){var e=zc(!1);return e=Td.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=He.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&xo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)fs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),xc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),xc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(tc(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),xc(),e!==null&&q(Ta);break;case 24:El(We)}}function ds(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(H){Me(i,S,H)}}}a=a.next}while(a!==c)}}catch(H){Me(t,t.return,H)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Kc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,l),e=e.sibling;e!==null;)Fc(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Wc=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,vo=ar,e=Sf(e),Xr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,H=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++H===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(yo={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bLe&&(h=Le,Le=se,se=h);var A=jf(b,se),E=jf(b,Le);if(A&&E&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var _=$.createRange();_.setStart(A.node,A.offset),D.removeAllRanges(),se>Le?(D.addRange(_),D.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!vo,yo=vo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=ta,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Dn();var e=ta,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=ta=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Er(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=no,no=null;var c=ta,h=Rl;if(lt=0,bn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,vs(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Lc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(Bn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=Gd(2),a=Kl(t,l,2),a!==null&&(Xd(l,a,t,e),Bn(a,2),fl(a));break}}t=t.return}}function co(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(eo=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&vn(e,0):to|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ws()),e=Na(e,t),e!==null&&(Bn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Ug(e,t){return Pt(e,t)}var Vi=null,jn=null,oo=!1,Zi=!1,uo=!1,aa=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Vi=jn=e:jn=jn.next=e),Zi=!0,oo||(oo=!0,Hg())}function vs(e,t){if(!uo&&Zi){uo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);uo=!1}}function Lg(){Xm()}function Xm(){Zi=oo=!1;var e=0;aa!==0&&Kg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||vs(e),aa!==0&&(aa=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var H=S.transferSize,$=S.initiatorType;H&&th($)&&(S=S.responseEnd,h+=H*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),mh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ss(c))||t==="script"&&a.querySelector(ws(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ws(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ss(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&To(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,H){S.onload=C,S.onerror=H}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ss(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function Ss(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function ws(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(Ss(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&To(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(ws(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),Ao(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(Ss(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&To(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _o=0;function mb(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0_o?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(hb,e),tr=null,er.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Ho.exports=Ob(),Ho.exports}var Po=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Dp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Dp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>O.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Bb,{ref:d,iconNode:r,className:Dp(`lucide-${Rb(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cu=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ou=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ua=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ha=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Rp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Up=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],uu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Yo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Lp=O.createContext(null);function D0({payload:s,children:r}){return n.jsx(Lp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Lp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[v,y]=O.useState({}),N=O.useRef(null),z=O.useRef(null),j=O.useRef(null),T=r.length;O.useEffect(()=>{T>1&&u(Math.floor(Math.random()*T))},[T]);const R=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(O.useEffect(()=>{if(!m)return;R();const X=()=>R(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,R]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const U=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},L=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:U.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${U.title}`,onClick:()=>f?L():G(),children:f?n.jsx(L0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!U.lyrics,children:(U.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Ej={PUBLISHED:3};function Tn(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Bp(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Bp(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Bp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function fu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function du(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function F0(s,r){var p,v;const o=y=>{const N=s.slice(0,Math.max(0,y)),z=N.split(` +`).length,j=y-N.lastIndexOf(` +`);return`${z}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:F0(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const N=y;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const I0=1260,P0=60,ev="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Kh(s.startTime??"")??Kh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(y,N)=>Math.round(y+(N-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function av(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const qp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function $p(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Yp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function mu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Yp(s)[0]??nv(s)[0]}function hu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:fu(r),value:pu(r,s.facts)})).filter(r=>r.value!=="")}function pu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=qp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return du(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:fu(m),value:pu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function xu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return qp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:fu(u),value:pu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return An(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return An(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return An(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return An(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function La(s){return An(s,Sv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Yp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return du(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=$p(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function Xp(s){if(s.place.category!==da.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,zv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Ev(s,wv)}function gt(s,r){const o=Hs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function gu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(O.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function kv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var T;return(T=j.alt)==null?void 0:T.trim()}).sort((j,T)=>Number(T.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=O.useState(0),[v,y]=O.useState(!1),N=O.useRef(null),z=O.useCallback(j=>p(T=>(T+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(v||x.length<2)return;const j=setInterval(()=>z(1),Ov);return()=>clearInterval(j)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const T=N.current;if(N.current=null,T===null)return;const R=j.changedTouches[0].clientX-T;Math.abs(R)>40&&z(R<0?1:-1)},children:[x.map((j,T)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:T===0?"high":"low",loading:T===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:T===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,T)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(T),"aria-label":`${T+1}번째 사진`,"aria-current":T===g,className:`h-1.5 rounded-full bg-current transition-all ${T===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=La(s).slice(0,3),f=_n(s),d=Ke(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Lv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Qp(s){return Lv[s??""]??"default"}function vr(){return Qp(P().theme.templateId)}const mr=5,eu=1.8,Hv=3;function Bv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+eu)} { opacity: 0; } + ${o(r-eu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*mr+eu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Hs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:hu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function Gv(){const s=P(),r=xu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Bs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Vp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function bu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Vp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=La(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Bs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:v})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Kv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(ou,{className:"size-4"})]})]})]})})}function vu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Xs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function yu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(yu(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(yu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Zp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(yu(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function ju({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Nu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Su({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?ju:p==="oasi"?Nu:p==="studio"?Su:p==="pastel"?wu:p==="editorial"?bu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Eu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Eu(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Eu(f,m)})}function zu(s){return typeof s=="number"}function tu(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Tu(s){return Math.sign(s)}function Rs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Rs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function qs(s){return $s(s).map(Number)}function al(s){return s[Qs(s)]}function Qs(s){return Math.max(0,s.length-1)}function Au(s,r){return r===Qs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function $s(s){return Object.keys(s)}function Kp(s,r){return[s,r].reduce((o,u)=>($s(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Kp(d,m):m}),o),{})}function lu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return tu(s)?o[s](g):s(r,g,p)}return{measure:m}}function Ys(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Ys(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function v(){z(),f.clear()}function y(R){if(!g)return;m||(m=R,o(),o());const U=R-m;for(m=R,x+=U;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function N(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:v,start:N,stop:z,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(j){const{height:T,width:R}=j;return u?T:R}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Jp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),y}function p(N){return v().set(x()+N)}function v(){return Jp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function fy(s,r,o,u,f,d,m,x,g,p,v,y,N,z,j,T,R,U,G){const{cross:L,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Ys(),W=Ys(),le=Ra(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(Tu(te)*-1),tt=v.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,L),N.emit("pointerDown")))}function oe(te){if(!lu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,L),Nt=Rs(De,Xe),It=Rs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>T&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=iy(tt,Nt),nl=K-10*It,Bt=U+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function dy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(lu(y,r)?y:y.touches[0])[j]}function x(y){return u=y,f=y,m(y)}function g(y){const N=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),N}function p(y){if(!u||!f)return 0;const N=m(f)-m(u),z=d(y)-d(u),j=d(y)-d(f)>170,T=N/z;return z&&!j&&Ge(T)>.1?T:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function N(R){return f.measureSize(m.measure(R))}function z(R){if(!d)return;p=N(s),v=u.map(N);function U(G){for(const L of G){if(y)return;const Z=L.target===s,X=u.indexOf(L.target),V=Z?p:v[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){R.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(R,G))&&U(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){y=!0,g&&g.disconnect()}return{init:z,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=Tu(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function T(){return x}function R(){return m}function U(){return L(f)}function G(){return Z(d)}function L(V){return g=V,X}function Z(V){return p=V,X}const X={direction:T,duration:j,velocity:R,seek:N,settled:z,useBaseFriction:G,useBaseDuration:U,useFriction:Z,useDuration:L};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",T=Ge(s[j]-r.get()),R=o.get()-r.get(),U=x.constrain(T/m);o.subtract(R*U),!z&&Ge(R){const{min:R,max:U}=d,G=d.constrain(j),L=!T,Z=Au(o,T);return L?U:Z||p(R,G)?R:p(U,G)?U:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:T}=x;return m.slice(j,T)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function v(N){if(!p(N))return;const z=s*(N*-1);u.forEach(j=>j.add(z))}return{loop:v}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=N(),v=z();function y(){return x(u).map(T=>al(T)[m]-T[0][d]).map(Ge)}function N(){return u.map(T=>o[d]-T[d]).map(T=>-Ge(T))}function z(){return x(p).map(T=>T[0]).map((T,R)=>T+g[R])}return{snaps:p,snapsAligned:v}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const N=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?N:N.slice(x,g).map((j,T,R)=>{const U=!T,G=Au(R,T);if(U){const L=al(R[0])+1;return np(L)}if(G){const L=Qs(d)-al(R)[0]+1;return np(L,al(R)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((T,R)=>Ge(T)-Ge(R))[0]}function p(j){const T=s?m(j):x(j),R=r.map((G,L)=>({diff:v(G-T,0),index:L})).sort((G,L)=>Ge(G.diff)-Ge(L.diff)),{index:U}=R[0];return{index:U,distance:T}}function v(j,T){const R=[j,j+o,j-o];if(!s)return j;if(!T)return g(R);const U=R.filter(G=>Tu(G)===T);return U.length?g(U):al(R)-o}function y(j,T){const R=r[j]-f.get(),U=v(R,T);return{index:j,distance:U}}function N(j,T){const R=f.get()+j,{index:U,distance:G}=p(R),L=!s&&d(R);if(!T||L)return{index:U,distance:j};const Z=r[U]-G,X=j+v(Z,0);return{index:U,distance:X}}return{byDistance:N,byIndex:y,shortcut:v}}function Ey(s,r,o,u,f,d,m){function x(y){const N=y.distance,z=y.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,N){const z=f.byDistance(y,N);x(z)}function p(y,N){const z=r.clone().set(y),j=f.byIndex(z.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function j(T){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(L=>L.includes(T));zu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((T,R)=>{d.add(T,"focus",U=>{(yr(x)||x(z,U))&&j(R)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Ms(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return zu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Fp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const z=ry(s.direction(N));z!==f&&(u.transform=o(z),f=z)}function p(N){d=!N}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const v=qs(f),y=qs(f).reverse(),N=U().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function T(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function R(Y,W,le){const xe=T(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Ms(-1),translate:Fp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function U(){const Y=m[0],W=j(y,Y);return R(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(v,Y);return R(W,-o,!0)}function L(){return N.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:L,clear:X,loop:Z,loopPoints:N}}function Ay(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(T=>{const R=r.indexOf(T.target);f[R]=T}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function v(){x&&x.disconnect(),g=!0}function y(j){return $s(f).reduce((T,R)=>{const U=parseInt(R),{isIntersecting:G}=f[U];return(j&&G||!j&&!G)&&T.push(U),T},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const T=y(j);return j&&(d=T),j||(m=T),T}return{init:p,destroy:v,get:N}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=j(),y=T(),N=o.map(m),z=R();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function T(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function R(){return o.map((G,L,Z)=>{const X=!L,V=Au(Z,L);return X?N[L]+v:V?N[L]+y:Z[L+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:z,startGap:v,endGap:y}}function ky(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,N=zu(o);function z(U,G){return qs(U).filter(L=>L%G===0).map(L=>U.slice(L,L+G))}function j(U){return U.length?qs(U).reduce((G,L,Z)=>{const X=al(G)||0,V=X===0,Y=L===Qs(U),W=f[p]-d[X][p],le=f[p]-d[L][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(L),Y&&G.push(U.length),G},[]).map((G,L,Z)=>{const X=Math.max(Z[L-1]||0);return U.slice(X,G)}):[]}function T(U){return N?z(U,o):j(U)}return{groupSlides:T}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:N,dragFree:z,dragThreshold:j,inViewThreshold:T,slidesToScroll:R,skipSnaps:U,containScroll:G,watchResize:L,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,M,f),w=ky(ce,K,R,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,y),Te=Jp(Qs(oe),v,y),at=Te.clone(),Oe=qs(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Hn,options:{loop:sl}})=>{sl||Hn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Hn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:jr,animation:Nr,eventHandler:Js,scrollBounds:Ba,options:{loop:xa}},ga)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),Bl=xa?rl:rl&&qa,Fs=Bl&&!jr.pointerDown();Fs&&Nr.stop();const Ws=Hn.get()*ga+bt.get()*(1-ga);sl.set(Ws),xa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=oy(u,f,()=>te(Un),bl=>Ce(Un,bl)),tt=.68,Nt=oe[Te.get()],It=Ms(Nt),nl=Ms(Nt),Bt=Ms(Nt),Pt=Ms(Nt),gl=xy(It,Bt,nl,Pt,N,tt),On=wy(y,oe,F,ze,Pt),Dn=Ey(De,Te,at,gl,On,Pt,m),pt=jy(ze),Zs=Ys(),Ks=_y(r,o,m,T),{slideRegistry:Rn}=Sy(ie,G,oe,fe,w,Oe),Ha=zy(s,o,Rn,Dn,gl,Zs,m,V),Un={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Dn,gl,On,Te,m,he,z,j,U,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,L,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:On,scrollTo:Dn,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:Ay(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Rn,slidesToScroll:w,target:Pt,translate:Fp(ce,r)};return Un}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Kp(d,m||{})}function o(d){const m=d.breakpoints||{},x=$s(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>$s(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Ys(),g=Oy(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:N,off:z,emit:j}=g,T=ce;let R=!1,U,G=p(Dy,pr.globalOptions),L=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=L;V=(tu(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=tu(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){R||(G=p(G,Oe),L=v(G),Z=te||Z,W(),U=le(L),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),L.active&&(U.translate.to(U.location.get()),U.animation.init(),U.slidesInView.init(),U.slideFocus.init(at),U.eventHandler.init(at),U.resizeHandler.init(at),U.slidesHandler.init(at),U.options.loop&&U.slideLooper.loop(),V.offsetParent&&Y.length&&U.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){U.dragHandler.destroy(),U.eventStore.clear(),U.translate.clear(),U.slideLooper.clear(),U.resizeHandler.destroy(),U.slidesHandler.destroy(),U.slidesInView.destroy(),U.animation.destroy(),m.destroy(),x.clear()}function he(){R||(R=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!L.active||R||(U.scrollBody.useBaseFriction().useDuration(te===!0?0:L.duration),U.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=U.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=U.index.add(-1).get();Xe(te,Oe,1)}function Q(){return U.index.add(1).get()!==w()}function ae(){return U.index.add(-1).get()!==w()}function pe(){return U.scrollSnapList}function Ne(){return U.scrollProgress.get(U.offsetLocation.get())}function w(){return U.index.get()}function q(){return U.indexPrevious.get()}function J(){return U.slidesInView.get()}function F(){return U.slidesInView.get(!1)}function re(){return X}function fe(){return U}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:T,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function _u(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Eu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ny()&&m){pr.globalOptions=_u.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}_u.globalOptions=void 0;const Cu=4e3;function ku({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([T])=>{m=T.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const z=T=>{const R=T.target;!(R instanceof Element)||!R.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Wp(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function Vs({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Cu,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[N,z]=_u({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,T]=O.useState([]),[R,U]=O.useState(0),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!z)return;const ie=()=>{U(z.selectedScrollSnap()),L(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{T(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),O.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),ku({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=O.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=O.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=O.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===R,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===R?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[R+1," / ",j.length]})]})]})}function Mu({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Hl,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru({open:s,onClose:r,label:o,children:u,wide:f}){return O.useEffect(()=>{if(!s)return;const d=x=>{x.key==="Escape"&&r()},m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",d),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",d)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl px-5 pb-8 pt-14 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${f?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})}),u]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=xu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Go=s=>!s.note&&Hy.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,z;const s=P(),r=hu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||kv(s),f=s.links.filter(j=>{var T,R,U;return j.confirmed&&[(T=j.stayGuide)==null?void 0:T.policy,(R=j.stayGuide)==null?void 0:R.service,(U=j.stayGuide)==null?void 0:U.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var T;return((T=j.stayGuide)==null?void 0:T.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Go(j)?!1:By.has(j.label)||d.some(T=>T.key===j.key&&T.group==="rules"),p=f.map(j=>{var T;return((T=j.stayGuide)==null?void 0:T.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(up,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(up,{title:"시설 · 편의",rows:y.filter(j=>!Go(j)),children:n.jsx(Gy,{rows:y.filter(Go)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32))),n.jsx(Qy,{})]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Xo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Xo.has(u.value))-Number(Xo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Xo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(cu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Qy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Vy="/v1/site/booking-request";function Zy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Vy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(ks,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(ks,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(ks,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(ks,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(ks,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function ks({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Qo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Ky(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Vo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Fy(s){return du(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=$p(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function ex(){var ce;const s=P(),r=O.useMemo(()=>Fy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Jy(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Ky(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=O.useState(null),[N,z]=O.useState(null),[j,T]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[R,U]=O.useState(2),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||N));return O.useEffect(()=>{U(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Wy,{payload:s,onReset:()=>L(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null].filter(Boolean).join(" · "),guests:`${R}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null,`${R}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(ha,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Qo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>T(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>U(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[R,"명"]}),n.jsx("button",{type:"button",onClick:()=>U(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Vo(Y.name):""} · ${R}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>L(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Wy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(cu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Zy,{stay:o,guests:u})]})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:hu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(ju,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function t1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Nu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function l1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function a1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function n1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Bs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(bu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(s1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function s1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Zo(){var p;const s=P(),r=ht(s),o=Xp(s),[u,f]=O.useState(null),d=vr();if(d==="reservation")return n.jsx(e1,{});if(d==="oasi")return n.jsx(t1,{});if(d==="studio")return n.jsx(l1,{});if(d==="pastel")return n.jsx(a1,{});if(d==="editorial")return n.jsx(n1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Iy,{});if(m==="rooms.tabs")return n.jsx(Py,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(i1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Du,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(ha,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(N=>N.unitId===v.unitId);return n.jsx(Ru,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[n.jsx("h3",{className:"h3",children:v.name}),(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:gu(N)}),n.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]}),n.jsx(ex,{})]})]})},v.unitId)})]})}function i1({images:s,name:r}){return n.jsx(Vs,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Mu,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function r1(){const s=P(),r=Ke(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:gu(f)},f.url))]})})]})})}function mp(){const s=P(),r=Xp(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:gu(m)}),n.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(ex,{})]})})}function c1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function o1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Rp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:uu,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function u1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function f1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(lv()),[]),s}const d1=["봄","여름","가을","겨울"];function m1(){const s=P(),r=s.local.festivals,o=f1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=d1.filter(y=>r.some(N=>N.season===y)),m=r.filter(y=>{var N;return!((N=y.season)!=null&&N.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const N=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const N=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(hp,{items:N,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Vs,{label:r,children:s.map(d=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ru,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:u.name}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})})]})}const Us=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Us},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Us},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Us}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Us))}분`}function h1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:h1(s.distanceText)}function p1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(N=>y.test(fa(N))).length,g=pp.filter((y,N)=>N===0||x(y)>0&&x(y)y.id===f)??pp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[vu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Us,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const N=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:C0,places:o,within:v}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function x1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(x1,{icon:r,children:s}),n.jsx(Vs,{label:s,children:f.map(x=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ru,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:d.name}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function g1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function b1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const N=await y.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(z=>({temperature:Number(N.weather.temperature),condition:g1(Number(N.weather.weather_code)),note:z==null?void 0:z.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function v1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const y1={맑음:A0,흐림:i0,비:l0,눈:n0};function j1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function N1(){var y,N,z,j,T;const s=P(),r=b1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=v1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(T=f==null?void 0:f.tempNotes)==null?void 0:T[u]);if(!r)return null;const p=j1(r.observedAt),v=y1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function S1(){const s=P(),r=xu(s),o=s.theme.sections.find(T=>T.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useRef(null),[x,g]=O.useState(0),[p,v]=O.useState({prev:!1,next:!0}),y=O.useCallback(()=>{const T=m.current;if(!T)return;const R=T.clientWidth,U=T.scrollWidth-R;g(R>0?Math.round(T.scrollLeft/R):0),v({prev:T.scrollLeft>8,next:T.scrollLeft(y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),ku({box:m,interval:Cu,advance:()=>Wp(m.current,1)});const N=O.useCallback(T=>{const R=m.current;if(!R)return;const U=window.matchMedia("(prefers-reduced-motion: reduce)").matches;R.scrollBy({left:T*R.clientWidth,behavior:U?"auto":"smooth"})},[]),z=O.useCallback(()=>d(null),[]),j=O.useCallback(T=>d(R=>R===null?null:(R+T+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const T=U=>{U.key==="Escape"&&z(),U.key==="ArrowLeft"&&j(-1),U.key==="ArrowRight"&&j(1)},R=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",T),()=>{document.body.style.overflow=R,window.removeEventListener("keydown",T)}},[f,z,j]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:m,onScroll:y,className:"flex snap-x snap-mandatory gap-3 overflow-x-auto [touch-action:pan-y_pinch-zoom] [scrollbar-width:none] lg:grid lg:grid-cols-4 lg:gap-3 lg:snap-none lg:overflow-visible [&::-webkit-scrollbar]:hidden",children:r.map((T,R)=>n.jsx("li",{className:"w-full shrink-0 snap-center lg:w-auto",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-4/3 rounded-lg"})},T.mediaId))}),r.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(bp,{dir:"prev",show:p.prev,onClick:()=>N(-1)}),n.jsx(bp,{dir:"next",show:p.next,onClick:()=>N(1)}),n.jsxs("span",{className:"pointer-events-none absolute bottom-3 right-3 rounded-full bg-black/55 px-2.5 py-1 text-[length:var(--fs-xs)] font-semibold tabular-nums text-white lg:hidden",children:[Math.min(x+1,r.length)," / ",r.length]})]})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((T,R)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"rounded-lg",free:!0})},T.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((T,R)=>n.jsx("li",{children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-square rounded-lg"})},T.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:z,children:[n.jsx("button",{type:"button",onClick:z,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(vp,{dir:"prev",onClick:()=>j(-1)}),n.jsx(vp,{dir:"next",onClick:()=>j(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:T=>T.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,show:r,onClick:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:o,"aria-label":s==="prev"?"이전 사진":"다음 사진","aria-hidden":!r,tabIndex:r?0:-1,className:`absolute top-1/2 z-10 flex size-9 -translate-y-1/2 items-center justify-center rounded-full bg-black/45 text-white backdrop-blur-sm transition-opacity hover:bg-black/65 lg:hidden ${r?"opacity-100":"pointer-events-none opacity-0"} ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(u,{className:"size-5"})})}function vp({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Ko({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function yp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(cu,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Zp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function w1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=mu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Rp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function kn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(uu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function E1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?ju:x==="oasi"?Nu:x==="studio"?Su:x==="pastel"?wu:x==="editorial"?bu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Mn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Vs,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Gs(s,r,o){return`총 ${s}${o}`}const jp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function Np(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return jp[o%jp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":Np(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":Np(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function z1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Gs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(T1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function T1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Gs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Gs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Mn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Mn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Mn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"장"),children:n.jsx(Mn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function A1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Mn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Os=318,zn=168,Sp=34,_1=16,wp=4;function rx(s,r,o){const u=Ll*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function C1(s){if(s.length<2)return 15;for(let r=_1;r>wp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Os-Sp*2&&f<=zn-Sp*2)return r}return wp}function k1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!M1(f,x)?f:void 0}),f=x)}),u}function M1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function O1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function D1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Zp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function R1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=k1(s,o),d=C1(f),m=O1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Os/2,v=g-zn/2,y=2**d,N=[];for(let j=Math.floor(p/Ll);j<=Math.floor((p+Os)/Ll);j+=1)for(let T=Math.floor(v/Ll);T<=Math.floor((v+zn)/Ll);T+=1){if(T<0||T>=y)continue;const R=(j%y+y)%y;N.push({key:`${j}-${T}`,url:`https://tile.openstreetmap.org/${d}/${R}/${T}.png`,left:j*Ll-p,top:T*Ll-v})}const z=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Os,height:zn,viewBox:`0 0 ${Os} ${zn}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,T)=>{const R=m[T];return n.jsx("a",{href:D1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:R.x-p,top:R.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function U1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function au(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function L1(){return n.jsx("div",{className:"flex w-6 shrink-0 items-center self-stretch","aria-hidden":!0,children:n.jsx("span",{className:"w-full border-t-2 border-dashed",style:{borderColor:Se}})})}function H1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d}){const m=tv({name:s.name,startTime:o,stops:u}),[x,g]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&g(!0)},[]),n.jsxs("article",{className:"w4-paper w-[320px] shrink-0 snap-center border",style:{backgroundColor:Ft,borderColor:Se},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[m.from,"–",m.to," · ",U1(m.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",m.from]})]}),x&&n.jsx(R1,{stops:m.stops.map(p=>p.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:m.stops.map((p,v)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:p.time}),n.jsxs("div",{className:`border-l pl-3 ${x?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[p.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",p.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[p.stop.imageUrl&&x&&n.jsx("img",{src:p.stop.imageUrl,alt:`${p.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(E1,{n:v+1}),p.stop.name]}),p.stop.note&&n.jsx("span",{hidden:!x,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.stop.note})]})]}),n.jsxs("p",{hidden:!x,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[p.time,"–",p.until,p.stop.searchQuery&&` · 지도 검색 ${p.stop.searchQuery}`]})]})]},`${p.stop.name}-${v}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>g(p=>!p),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:x?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!x,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Jo="그 밖의 일정";function B1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>au(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Jo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var N;return(((N=y.duration)==null?void 0:N.trim())||Jo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(q1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Jo)===p}),placeName:s.place.name},x)},p))]})}function q1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=au(v).length,{item:v,start:y}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(Mn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>au(p).flatMap((y,N)=>{const z=n.jsx(H1,{item:p,badge:y.label??p.duration??`${N+1}일차`,startTime:y.startTime,stops:y.stops,first:N===0,placeName:o},`${p.name}-${v}-${N}`);return N===0?[z]:[n.jsx(L1,{},`${p.name}-${v}-c${N}`),z]}))})]})}function $1(){const s=P(),r=Wt(s,"video"),[o,u]=O.useState(),f=O.useRef(null),[d,m]=O.useState({prev:!1,next:!0}),x=O.useCallback(()=>{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(v=>{const y=f.current;if(!y)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(ku({box:f,interval:Cu,advance:()=>Wp(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const N=V0(v.url),z=Z0(v.url),j=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:T=>{N&&(T.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Ep,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Ep,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Ep({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Y1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},G1=s=>[{id:"songs",label:"가요 다방",Component:lx},{id:"people",label:"인물 열전",Component:ax},{id:"chronicle",label:"시간의 골목",Component:nx},{id:"reading",label:s,Component:sx},{id:"postcard",label:"오늘의 엽서",Component:ix}];function X1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=G1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Y1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const Q1={open:"진행 중",soon:"곧 시작",closed:"종료"};function zp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Fo(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Q1[r]}function Wo(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function V1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?zp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?zp(p,o):void 0,N=Fo(p,y),z=Wo(p),j=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&N!=="공지"?Ze:Ft,color:y==="open"&&N!=="공지"?ma:dl,borderColor:y==="open"&&N!=="공지"?Ze:Se},children:N}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Fo(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Fo(x,g)}),Wo(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Wo(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Z1={songs:lx,daily:z1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:A1,itinerary:B1,video:$1,event:V1,story:X1},K1="/v1/site/review",J1="/v1/site/reviews",Tp=5,Ap=500;function F1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[v,y]=O.useState(!1),[N,z]=O.useState(null),j=s.site.placeId,T=O.useCallback(async()=>{try{const G=await fetch(`${J1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const L=await G.json();Array.isArray(L==null?void 0:L.items)&&o(L.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),T()},[T]),O.useEffect(()=>{if(!v)return;u.current=Date.now();const G=Z=>{Z.key==="Escape"&&y(!1)},L=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",G),()=>{document.body.style.overflow=L,window.removeEventListener("keydown",G)}},[v]);async function R(G){if(G.preventDefault(),g)return;const L=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(K1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(L.get("nickname")??"")||null,consent:L.get("consent")==="on",company:String(L.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await T())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const U=Math.ceil(r.length/Tp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,L)=>n.jsxs("li",{hidden:Math.floor(L/Tp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(G.publishedAt)})]})]},G.reviewId))}),U>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:U},(G,L)=>n.jsx("button",{type:"button",onClick:()=>d(L),"aria-current":L===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:L===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:L+1},L))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),v&&n.jsxs("div",{className:"fixed inset-0 z-50",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:()=>y(!1),className:"absolute inset-0 bg-black/55"}),n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"후기 남기기",className:"absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8",style:{backgroundColor:"var(--color-surface)"},children:n.jsxs("form",{onSubmit:R,className:"flex flex-col gap-3",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ap,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ap,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"}),n.jsx("button",{type:"button",onClick:()=>y(!1),className:"tap text-muted text-[length:var(--fs-sm)]",children:"닫기"})]})})]})]})}function W1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const nu=1080,Ds=4,mt=56,su=190,Io="#1b1a15",I1="#efe7d3",_p="#bf2f1b";function cx(s=nu){return s-mt-su-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function P1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const ej="/v1/image/relay?url=";async function tj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${ej}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function lj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Cp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=lj();d.clearRect(0,0,m,m),d.fillStyle=I1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await tj(r),v=m-mt*2,y=v/1.5,N=Math.max(v/g.width,y/g.height),z=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-j)/2,z,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const T=mt+y+36,R=m-mt-su,U=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(R,T),d.lineTo(R,m-mt-46),d.stroke(),d.fillStyle=Io,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,U),L=G.slice(0,Ds);if(G.length>Ds){let W=L[Ds-1];for(;W.length&&d.measureText(`${W}…`).width>U;)W=W.slice(0,-1);L[Ds-1]=`${W}…`}L.forEach((W,le)=>d.fillText(W,mt,T+50+le*60));const Z=R+su/2;d.strokeStyle=Io,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,T,88,108),d.setLineDash([]),d.fillStyle=Io,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,T+46),d.fillText("10원",Z,T+78),d.save(),d.translate(Z,T+210),d.rotate(-6*Math.PI/180),d.strokeStyle=_p,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=_p,d.font=`600 22px ${x}`;const X=P1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function aj(){const s=P(),r=(s.media??[]).filter(L=>L.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,v]=O.useState(!1),[y,N]=O.useState(!0);O.useEffect(()=>{var L;v(((L=window.matchMedia)==null?void 0:L.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const L=o.current,Z=r[u];if(!L||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,z,j,r]),O.useEffect(()=>{var X;const L=o.current,Z=r[u];!L||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N))},[]),r.length===0)return null;function T(L){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${L}”`,cx()).length<=Ds):!0}function R(){return new Promise(L=>{const Z=o.current;if(!Z)return L(null);Z.toBlob(X=>L(X),"image/png",.95)})}function U(L){const Z=URL.createObjectURL(L),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const L=await R();if(!L)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([L],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}U(L),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:nu,height:nu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Vs,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((L,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:L.url,alt:"",loading:"lazy",className:"size-full object-cover"})},L.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:L=>{T(L.target.value)&&m(L.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void R().then(L=>L&&U(L)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(rj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(cj,{}),n.jsx(kn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Ht(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const sj=24,ij="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function rj(){const s=P(),r=ux(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>sj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:ij},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function cj(){var p,v,y,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Hs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Hs(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]})]})})}const oj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,uj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function fj({children:s}){var v,y,N,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...La(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var T;return j.enabled&&((T=j.name)==null?void 0:T.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:uj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:oj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,T)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":T===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${T===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,T)=>n.jsxs("li",{className:"flex items-center gap-4",children:[T>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Hs(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Xs(r.site.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function dj({children:s}){var N,z,j,T;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=La(r),g=Ke(r)[0],p=mu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(R=>R.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(R=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:R.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:R.value})]},R.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(R=>n.jsx("li",{children:n.jsx("a",{href:R.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:R.label})},R.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((T=o.legal)==null?void 0:T.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Xs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(kn,{})]})}const mj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,hj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function pj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:hj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:mj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(uu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(kn,{})]})}function xj({children:s}){var p,v,y,N;const r=P(),{place:o,site:u}=r,f=Vp(),d=gj(f),m=Ke(r)[0],x=mu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Bs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const j=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Xs(u.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function gj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function bj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Ly,info:qy,rooms:Zo,menu:Zo,programs:Zo,booking:r?mp:r1,space:c1,inquiry:o1,exhibition:u1,photos:S1,festival:m1,local:p1,weather:N1,map:yp,faq:w1,...Z1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Ht(s,"map")&&n.jsx(yp,{}),r&&!Av(s,"booking")&&n.jsx(mp,{}),!Ht(s,"intro")&&n.jsx(op,{}),n.jsx(F1,{}),n.jsx(aj,{}),Ht(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(W1,{})})]})}function iu({payload:s}){const r=Qp(s.theme.templateId),o=r==="reservation"?nj:r==="oasi"?fj:r==="studio"?dj:r==="pastel"?pj:r==="editorial"?xj:vj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(bj,{})})})}function vj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(kn,{})]})}function yj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const jj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Nj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${jj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),Mp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Sj(){return O.useEffect(()=>Uu(!0),[]),null}async function wj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(yj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Nj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}Po.createRoot(hr).render(n.jsxs(O.StrictMode,{children:[n.jsx(iu,{payload:u}),n.jsx(Sj,{})]})),Uu(!0)}const Op=new URLSearchParams(window.location.search).get("placeId");Mp?Po.hydrateRoot(hr,n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:Mp})})):Op?wj(Op).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-Cqp6icC0.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{Po.createRoot(hr).render(n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:s})}))});export{Vh as F,it as L,da as P,$0 as S,Ej as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-D4tfakmK.js b/solution/site/scripts/mockup/vendor/retired/index-D4tfakmK.js new file mode 100644 index 0000000..7d0c0c0 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-D4tfakmK.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Sb,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function Ab(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(O){if(A=!1,Z(O),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(x)&&u(x),Z(O)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(x)===null&&O===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(x,O),N||w||(N=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=j;return function(){var ae=j;j=Q;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Lh;function _b(){return Lh||(Lh=1,Xo.exports=Cb()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function kb(){if(Bh)return xt;Bh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=kb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function Ob(){if($h)return Ds;$h=1;var s=_b(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Cs._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,C[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===C.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=C.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=C.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,C,B){if(typeof C=="object"&&C!==null&&C.type===A&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:e:{for(var ne=C.key;z!==null;){if(z.key===ne){if(ne=C.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,C.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===z.type){l(T,z.sibling),B=i(z,C.props),is(B,C),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}C.type===A?(B=Sa(C.props.children,T.mode,B,C.key),B.return=T,T=B):(B=hi(C.type,C.key,C.props,null,T.mode,B),is(B,C),B.return=T,T=B)}return h(T);case N:e:{for(ne=C.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===C.containerInfo&&z.stateNode.implementation===C.implementation){l(T,z.sibling),B=i(z,C.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(C,T.mode,B),B.return=T,T=B}return h(T);case W:return C=Aa(C),He(T,z,C,B)}if(ie(C))return I(T,z,C,B);if(K(C)){if(ne=K(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),se(T,z,C,B)}if(typeof C.then=="function")return He(T,z,ji(C),B);if(C.$$typeof===R)return He(T,z,gi(T,C),B);Ni(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,C),B.return=T,T=B):(l(T,z),B=ac(C,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,C,B){try{ss=0;var ne=He(T,z,C,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),_f(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),_=O.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return Ad(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(Cs)}function Cd(){return Je().memoizedState}function _d(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Od(l,t,a)))}function kd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:Ai,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=kd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Cl(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)kf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++_===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var C=$.createRange();C.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(C),D.extend(z.node,z.offset)):(C.setEnd(z.node,z.offset),D.addRange(C))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{fm(e,t.alternate,t)}finally{Ae=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,jm(c.current),bm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(As(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(As(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function As(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(As(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>M.createElement("svg",{ref:x,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!Hb(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ce=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:kp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=Ce("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=Ce("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=Ce("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=Ce("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=Ce("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=Ce("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=Ce("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cn=Ce("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=Ce("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=Ce("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=Ce("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=Ce("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=Ce("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=Ce("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=Ce("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=Ce("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=Ce("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=Ce("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=Ce("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=Ce("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=Ce("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=Ce("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=Ce("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=Ce("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=Ce("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=Ce("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A0=Ce("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_0=Ce("utensils",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=Ce("x",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=Ce("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,g]=M.useState(!1),[x,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),j=M.useRef(null),w=M.useRef(null),N=M.useRef(null),A=r.length;M.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Xh(x.now)}${x.total?` / ${Xh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Tj={PUBLISHED:3};function _n(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??P0),x=u+m;if(x+g>I0){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,g,x]=Kh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=Ct(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return kn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return kn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return kn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return kn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=Ct(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=An(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Cv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:_v;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function kv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Dv),[x,p]=M.useState(0),[y,v]=M.useState(!1),j=M.useRef(null),w=M.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return M.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Ov);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Lv),x=f?{href:f.url,label:`${An(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:g||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!ep(g)||!ep(x)?g===x:Au(g,x)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=lp(d)&&lp(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(_u(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function xy(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=_u(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Ra(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=ku(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Ra(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=ku(L,A);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return N})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>_u(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function zy(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return Cu(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=ry(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function Ty(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ay(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Cy(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=ku(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function ky(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function My(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(x,p),K=ce.measureSize(le),he=hy(K),Xe=cy(g,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,O,f),E=ky(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,j,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=Cy(r,o,m,A),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Ay(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),g=Qs(),x=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,g]=M.useState(),x=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{Au(o.current,s)||(o.current=s,x())},[s,x]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,x())},[r,x]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{A(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(x);le.current=x;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return M.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(g=>g.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(g=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:g,onOpen:()=>u(g.postId)})},g.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],g=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:g}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||kv(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Ky,{text:N},N.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,g]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=up(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>Py(s),[s]),o=M.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Iy(o),[o]),[f,d]=M.useState(null),[m,g]=M.useState(0);M.useEffect(()=>d(new Date),[]);const x=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&x?Wy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=M.useState(null),[j,w]=M.useState(null),[N,A]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Cn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),g=Sr();if(g==="reservation")return n.jsx(a1,{});if(g==="oasi")return n.jsx(n1,{});if(g==="studio")return n.jsx(s1,{});if(g==="pastel")return n.jsx(i1,{});if(g==="editorial")return n.jsx(r1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(t1,{});if(x==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(o1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(ma,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=mp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:_0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function y1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function j1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:y1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function N1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,g=o!=null&&o.length?pp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const S1={맑음:A0,흐림:i0,비:l0,눈:n0};function w1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function E1(){var v,j,w,N,A;const s=P(),r=j1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=N1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=w1(r.observedAt),y=S1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function z1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),g=M.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(xp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=ey(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function T1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:An(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=M.useContext(tx),p=g==="reservation"?wu:g==="oasi"?Eu:g==="studio"?zu:g==="pastel"?Tu:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Fv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(_1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function _1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function k1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,M1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function O1(s){if(s.length<2)return 15;for(let r=M1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function D1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!R1(f,g)?f:void 0}),f=g)}),u}function R1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function U1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function H1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function L1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=D1(s,o),d=O1(f),m=U1(f.map(N=>rx(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+Tn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:H1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function B1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function q1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",B1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(L1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function $1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),g=M.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(q1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=M.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=V0(y.url),w=Z0(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:J0(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:K0(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const X1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Q1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function V1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",X1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Z1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Z1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function K1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Sp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ha:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const J1={songs:lx,daily:C1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:k1,itinerary:$1,video:G1,event:K1,story:V1},F1="/v1/site/review",W1="/v1/site/reviews",wp=5,Ep=500;function I1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,g]=M.useState(""),[x,p]=M.useState(!1),[y,v]=M.useState(!1),[j,w]=M.useState(null),N=s.site.placeId,A=M.useCallback(async()=>{try{const G=await fetch(`${W1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);M.useEffect(()=>{u.current=Date.now(),A()},[A]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(F1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function P1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",ej="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function tj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const lj="/v1/image/relay?url=";async function aj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${lj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function nj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=nj();d.clearRect(0,0,m,m),d.fillStyle=ej,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await aj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${g}`;const X=tj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function sj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[g,x]=M.useState(""),[p,y]=M.useState(!1),[v,j]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function ij({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(oj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(uj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const rj=24,cj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function oj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>rj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:cj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function uj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:An(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:An(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const fj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,dj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function mj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:An(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function hj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const pj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,xj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function gj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:xj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:pj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function bj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Yp(),d=vj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function vj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function yj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?fp:u1,space:f1,inquiry:d1,exhibition:m1,photos:z1,festival:x1,local:b1,weather:E1,map:gp,faq:T1,...J1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!Av(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(I1,{}),n.jsx(sj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(P1,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?ij:r==="oasi"?mj:r==="studio"?hj:r==="pastel"?gj:r==="editorial"?bj:jj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(yj,{})})})}function jj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Cv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Nj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Sj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function wj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Sj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Ej(){return M.useEffect(()=>Ru(!0),[]),null}async function zj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Nj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=wj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Ej,{})]})),Ru(!0)}const _p=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Cp})})):_p?zj(_p).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-BkWwv6kr.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,Tj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-D7X11dT2.css b/solution/site/scripts/mockup/vendor/retired/index-D7X11dT2.css new file mode 100644 index 0000000..57ef39e --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-D7X11dT2.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-D7XgugoL.css b/solution/site/scripts/mockup/vendor/retired/index-D7XgugoL.css new file mode 100644 index 0000000..1abf82a --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-D7XgugoL.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-400:oklch(82.8% .189 84.429);--color-amber-700:oklch(55.5% .163 48.998);--color-emerald-600:oklch(59.6% .145 163.225);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}:root,:host{--color-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-muted:color-mix(in oklab, currentColor 96%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[30rem\]{min-width:30rem}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-\[190px\]{flex-basis:190px}.basis-\[225px\]{flex-basis:225px}.basis-full{flex-basis:100%}.border-collapse{border-collapse:collapse}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14\.5px\]{font-size:14.5px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-45{opacity:.45}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-95:hover{opacity:.95}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-4\/3{aspect-ratio:4/3}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-\[60\%\]{max-width:60%}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.sm\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-3\.5{padding:calc(var(--spacing) * 3.5)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-D7rECtkE.js b/solution/site/scripts/mockup/vendor/retired/index-D7rECtkE.js new file mode 100644 index 0000000..030d405 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-D7rECtkE.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const jb="modulepreload",Nb=function(s){return"/"+s},Oh={},Sb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Nb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":jb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Bo={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function wb(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function Eb(){return Rh||(Rh=1,Bo.exports=wb()),Bo.exports}var n=Eb(),qo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function zb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new Y;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var G={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,G=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){G=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(Y(G),G=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||w||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(Yo)),Yo}var Bh;function Ab(){return Bh||(Bh=1,Go.exports=Tb()),Go.exports}var Xo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function _b(){if(qh)return xt;qh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Xo.exports=_b(),Xo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function kb(){if(Gh)return Os;Gh=1;var s=Ab(),r=ou(),o=Cb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,xl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,gl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,wr=Math.log,Er=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(wr(e)/Er|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function zr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ox(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var px=/[\n"\\]/g;function $t(e){return e.replace(px,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Or(e,h,qt(t)):l!=null?Or(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){kr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),kr(e)}function Or(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lr=!1;if(yl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Lr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Lr=!1}var Gl=null,Br=null,ai=null;function lf(){if(ai)return ai;var e,t=Br,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Yx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Qx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Vx(e,t){if(Ja)return e==="compositionend"||!Xr&&ff(e,t)?(e=lf(),ai=Br=Gl=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eg=yl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Kr=null,Pn=null,Jr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jr||Fa==null||Fa!==ti(a)||(a=Fa,"selectionStart"in a&&Zr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Kr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Nl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Nl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Nl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Nl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Nl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(yb){return t(T,yb)}),je&&Nl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=lc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=tc(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function xc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var gc=!1;function rs(){if(gc){var e=sn;if(e!==null)throw e}}function cs(e,t,l,a){gc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(gc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Uc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=og(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function pg(){}function Dc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?pg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Rc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function xg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:uc()},e.payload=t;return}t=t.return}}function gg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=Pr(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=Pr(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:po(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=Pr(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){un=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=vt();return Oc(l,e,t)},useTransition:function(){var e=_c(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return qe(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&vo(t.stateNode.containerInfo),qe(t),null;case 10:return wl(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Nl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Nl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wl(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ng(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wl(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return wl(t.type),null;case 22:case 23:return Dt(t),vc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wl(We),null;case 25:return null;default:return null}}function sm(e,t){switch(nc(t),t.tag){case 3:wl(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:wl(t.type);break;case 22:case 23:Dt(t),vc(),e!==null&&q(za);break;case 24:wl(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Wc(e,t,l){try{var a=e.stateNode;Xg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=vl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,l),e=e.sibling;e!==null;)Pc(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,eo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Sg(e,t){if(e=e.containerInfo,No=nr,e=Sf(e),Zr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(So={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!No,So=No=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=gn,l=Dl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=ro,ro=null;var c=la,h=Dl;if(lt=0,gn=la=null,Dl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=qc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function fo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new zg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(ao=!0,i.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&bn(e,0):no|=l,xn===ve&&(xn=0)),fl(e)}function Ym(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Og(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Dg(e,t){return Pt(e,t)}var Zi=null,yn=null,mo=!1,Ki=!1,ho=!1,na=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Zi=yn=e:yn=yn.next=e),Ki=!0,mo||(mo=!0,Ug())}function Ns(e,t){if(!ho&&Ki){ho=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);ho=!1}}function Rg(){Xm()}function Xm(){Ki=mo=!1;var e=0;na!==0&&Vg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function tb(e){Rl.D(e),mh("dns-prefetch",e,null)}function lb(e,t){Rl.C(e,t),mh("preconnect",e,t)}function ab(e,t,l){Rl.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e,t){Rl.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function sb(e,t,l){Rl.S(e,t,l);var a=jn;if(a&&e){var i=Ya(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Co(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ib(e,t){Rl.X(e,t);var l=jn;if(l&&e){var a=Ya(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function rb(e,t){Rl.M(e,t);var l=jn;if(l&&e){var a=Ya(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ya(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ya(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||cb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ya(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function cb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Co(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),ko(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ob(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ub(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Co(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Mo=0;function fb(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Mo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(db,e),lr=null,tr.call(e))}function db(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=kb(),$o.exports}var tu=Mb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ob=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Db=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Db(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Rb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ub={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Ub,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!Rb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Hb,{ref:d,iconNode:r,className:Op(`lucide-${Ob(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",Lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],qb=_e("bed-double",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Gb=_e("calendar-check",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Xb=_e("calendar-days",Yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Vb=_e("car",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ib=_e("clock",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],e0=_e("cloud-rain",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],l0=_e("cloud-snow",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],n0=_e("cloud",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i0=_e("copy",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],c0=_e("external-link",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],u0=_e("instagram",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M5 12h14",key:"1ays0h"}]],x0=_e("minus",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Qo=_e("navigation",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],y0=_e("play",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],N0=_e("plus",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],w0=_e("rotate-ccw",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],z0=_e("sun",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],k0=_e("youtube",C0),Up=O.createContext(null);function M0({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function O0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function D0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function U0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function L0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),N=O.useRef(null),w=O.useRef(null),j=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),G={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)G.left="8px",G.right="8px";else{G.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();G.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(G)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=G=>{var le,xe;const W=G.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(X=o)=>{const V=N.current,G=r[X];!V||!G||(V.getAttribute("src")!==G.audioUrl&&(V.src=G.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),Y(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(O0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(R0,{}):n.jsx(D0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(U0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(H0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const Hl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},B0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},q0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return q0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Nj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?$0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function $0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function G0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Y0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function X0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Q0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function V0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Z0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function K0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function J0(s,r){const o=Y0[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:K0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const F0=1260,W0=60,I0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function P0(s){const r=Kh(s.startTime??"")??Kh(I0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??W0),g=u+m;if(g+x>F0){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function ev(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function tv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[Hl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[Hl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[Hl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[Hl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function lv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function av(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!av(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??lv(s)[0]}function xu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const nv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function sv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===Hl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:sv(u.facts.filter(m=>!nv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:iv(u),prices:cv(u),href:`/${r.path}/${u.slug}`}})}function iv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const rv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function cv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?rv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function ov(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function uv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function fv(s){return G0(s.faqs)}function dv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function mv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=J0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function hv(s,r){return Cn(s,[r])[0]}const pv=["reservation_required","reservation_channel"];function xv(s){return Cn(s,pv)}const gv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function bv(s){return Cn(s,gv)}const vv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function yv(s){return Cn(s,vv)}const jv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return Cn(s,jv).slice(0,4)}function kn(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,wv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Ev(s){return hu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function vu(s){if(s.place.category!==Hl.LODGING)return null;const r={offers:Ev(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,wv),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function zv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return Sv(s,Nv)}function yt(s,r){const o=zn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function yu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Tv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(L0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===Hl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function yr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return Cv(s).join(" ")}function Cv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const kv=6e3,Mv=5;function Ov(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var A;return(A=j.alt)==null?void 0:A.trim()}).sort((j,A)=>Number(A.isPrimary)-Number(j.isPrimary)).slice(0,Mv),[g,p]=O.useState(0),[y,v]=O.useState(!1),N=O.useRef(null),w=O.useCallback(j=>p(A=>(A+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),kv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const A=N.current;if(N.current=null,A===null)return;const L=j.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,A)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=kn(s),d=Fe(s),m=hv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Rv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Rv[s??""]??"default"}function jr(){return Yp(P().theme.templateId)}const pr=5,lu=1.8,Uv=3;function Hv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Lv(s,r){return((r-s)%r*pr+lu).toFixed(1)}function Bv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Uv),g=f?{href:f.url,label:`${zn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Hv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function $v(){const s=P(),r=bu(s),o=yr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Yv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Xv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of dv(s)){const m=Yv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Xv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function ju({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=yr(s),f=ht(s),d=hl(s),m=Ua(s),x=kn(s),g=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Vv(){var g;const s=P(),r=jr();if(r==="reservation")return n.jsx(Bv,{});if(r==="oasi")return n.jsx(qv,{});if(r==="studio")return n.jsx($v,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Qv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Ov,{});if(o==="hero.split")return n.jsx(Dv,{});const{place:u,narrative:f}=s,d=yr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function Nu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Zv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Kv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Jv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Fv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Wv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Iv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const Pv={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=jr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?ju:ey;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...Pv[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ey({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ty(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ty(s)||Array.isArray(s)}function ly(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Au(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ay(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function _u(s){return typeof s=="number"}function au(s){return typeof s=="string"}function Nr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Ls(s,r){return Ye(s-r)}function ny(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Ls(Ye(s),Ye(r));return Ye(o/s)}function sy(s){return Math.round(s*100)/100}function Gs(s){return Ys(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function iy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function ry(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function cy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:A,width:L}=j;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Da(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function oy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,A,L,H,Y){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},G=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!Y)return;function Ce(tt){(Nr(Y)||Y(te,tt))&&fe(tt)}const De=r;G.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){G.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(Cu(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=ny(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function uy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(nu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,A=N/w;return w&&!j&&Ye(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function fy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function dy(s){function r(u){return s*(u/100)}return{measure:r}}function my(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],G=N(Z?s:u[X]);if(Ye(G-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(Nr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function hy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),G=!g;let W=0;return G?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Cu(W),v=y,X}function w(){const V=u.get()-r.get();return Ye(V)<.001}function j(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function Y(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function py(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",A=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!A,Z=ku(o,A);return R?H:Z||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:A}=x;return m.slice(j,A)}return{snapsContained:g,scrollContainLimit:x}}function gy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function by(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function vy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function yy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ye)}function N(){return u.map(A=>o[d]-A[d]).map(A=>-Ye(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function jy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,A,L)=>{const H=!A,Y=ku(L,A);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Ny(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((A,L)=>Ye(A)-Ye(L))[0]}function p(j){const A=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-A,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(j,A){const L=[j,j+o,j-o];if(!s)return j;if(!A)return g(L);const H=L.filter(Y=>Cu(Y)===A);return H.length?g(H):al(L)-o}function v(j,A){const L=r[j]-f.get(),H=y(L,A);return{index:j,distance:H}}function N(j,A){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:j};const Z=r[H]-Y,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Sy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function wy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(A));_u(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Nr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=sy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ey(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(Y());function w(G,W){return G.reduce((le,xe)=>le-f[xe],W)}function j(G,W){return G.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(G){return d.map((W,le)=>({start:W-u[le]+.5+G,end:W+r-.5+G}))}function L(G,W,le){const xe=A(W);return G.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const G=m[0],W=j(v,G);return L(W,o,!1)}function Y(){const G=r-m[0]-1,W=j(y,G);return L(W,-o,!0)}function R(){return N.every(({index:G})=>{const W=y.filter(le=>le!==G);return w(W,r)<=.1})}function Z(){N.forEach(G=>{const{target:W,translate:le,slideLocation:xe}=G,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(G=>G.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function zy(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Nr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ty(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&A.push(H),A},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const A=v(j);return j&&(d=A),j||(m=A),A}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=A(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function A(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Z)=>{const X=!R,V=ku(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,Y){return Gs(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Gs(H).reduce((Y,R,Z)=>{const X=al(Y)||0,V=X===0,G=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&G?v(x):0,K=Ye(le-ce-(W+xe));return Z&&K>r+g&&Y.push(R),G&&Y.push(H.length),Y},[]).map((Y,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,Y)}):[]}function A(H){return N?w(H,o):j(H)}return{groupSlides:A}}function Cy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,G=2,W=fy(),le=W.measure(r),xe=o.map(W.measure),ce=cy(g,p),K=ce.measureSize(le),he=dy(K),Xe=iy(x,K),ie=!v&&!!Y,M=v||!!Y,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,M,f),E=_y(ce,K,L,v,le,xe,pe,Ne,G),{snaps:q,snapsAligned:J}=yy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=xy(K,F,J,Y,G),oe=ie?re:J,{limit:ze}=gy(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:gl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(gl.pointerDown()),qn.seek()},Ce=({scrollBody:gl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:wr,animation:Er,eventHandler:Fs,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=gl.settled(),Ba=!La.shouldConstrain(),ql=pa?rl:rl&&Ba,Ws=ql&&!wr.pointerDown();Ws&&Er.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(gl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=ry(u,f,()=>te(Bn),gl=>Ce(Bn,gl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),xl=hy(It,Bt,nl,Pt,N,tt),Un=Ny(v,oe,F,ze,Pt),Hn=Sy(De,Te,at,xl,Un,Pt,m),pt=vy(ze),Ks=Xs(),Js=Ty(r,o,m,A),{slideRegistry:Ln}=jy(ie,Y,oe,fe,E,Oe),Ha=wy(s,o,Ln,Hn,xl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:oy(ce,s,u,f,Pt,uy(ce,f),It,De,Hn,xl,Un,Te,m,he,w,j,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:my(r,m,f,o,ce,R,W),scrollBody:xl,scrollBounds:py(ze,Bt,Pt,xl,he),scrollLooper:by(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:Ey(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:zy(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function ky(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const My={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Oy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Dy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Oy(f),m=Dy(d),x=Xs(),g=ky(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,A=ce;let L=!1,H,Y=p(My,gr.globalOptions),R=p(Y),Z=[],X,V,G;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;G=[].slice.call(De||V.children)}function le(Oe){const te=Cy(s,V,G,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(Y=p(Y,Oe),R=y(Y),Z=te||Z,W(),H=le(R),v([Y,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&G.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return G}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function Mu(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Au(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ay(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ly()&&m){gr.globalOptions=Mu.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ry(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,A]=O.useState([]),[L,H]=O.useState(0),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),G=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:G,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":G,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Sr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Tn({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),f]})]}):null}function Uy(){const s=P(),{narrative:r,place:o}=s,u=mv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Nu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Vo=s=>!s.note&&Hy.has(s.value.trim()),Ly=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function By(){var N,w;const s=P(),r=xu(s),o=_n(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(j=>{var A,L,H;return j.confirmed&&[(A=j.stayGuide)==null?void 0:A.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var A;return((A=j.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Vo(j)?!1:Ly.has(j.label)||d.some(A=>A.key===j.key&&A.group==="rules"),p=f.map(j=>{var A;return((A=j.stayGuide)==null?void 0:A.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(j=>!Vo(j)),children:n.jsx(Gy,{rows:v.filter(Vo)})}),p.map(j=>n.jsx(Yy,{text:j},j.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Zo=new Set(["가능","있음"]),qy="#16a34a",$y="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Zo.has(u.value))-Number(Zo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Zo.has(o.value),f=u?qy:$y;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Yy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Xy="/v1/site/booking-request";function Qy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Xy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Ko=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Vy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Jo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Ky(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ru(){var ce;const s=P(),r=O.useMemo(()=>Ky(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Zy(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Vy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[N,w]=O.useState(null),[j,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,G=r.find(K=>K.unitId===j)??null,W=(G==null?void 0:G.maxCapacity)??8,le=V&&G?V.isWeekend?G.weekendPrice??G.weekdayPrice:G.weekdayPrice:void 0,xe=!!(y&&G&&(u.length===0||N));return O.useEffect(()=>{H(K=>Math.min(K,(G==null?void 0:G.maxCapacity)??8))},[G]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Xb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!Y?null:Y?n.jsx(Jy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,G?Jo(G.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,G?Jo(G.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Ko.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Ib,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(x0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(N0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${G?Jo(G.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Jy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(w0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Qy,{stay:o,guests:u})]})}function Fy(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function e1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function t1(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function l1(){const s=P(),r=hl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(ju,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(a1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function a1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Fo(){var v;const s=P(),r=ht(s),o=vu(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=jr();if(x==="reservation")return n.jsx(Iy,{});if(x==="oasi")return n.jsx(Py,{});if(x==="studio")return n.jsx(e1,{});if(x==="pastel")return n.jsx(t1,{});if(x==="editorial")return n.jsx(l1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Fy,{});if(g==="rooms.tabs")return n.jsx(Wy,{});const p=hl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(n1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(Tn,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:yu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(Tn,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ru,{})})]})}function n1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Sr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function s1(){const s=P(),r=Fe(s),o=xv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:yu(f)},f.url))]})})]})})}function mp(){const s=P(),r=vu(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Gb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(qb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:yu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ru,{})]})})}function i1(){const s=P(),r=bv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function r1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function c1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function o1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(ev()),[]),s}const u1=["봄","여름","가을","겨울"];function f1(){const s=P(),r=s.local.festivals,o=o1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=u1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Tn,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Zv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function d1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:d1(s.distanceText)}function m1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=pp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Nu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function h1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(h1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(x=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Tn,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(da(x))&&` · ${mr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function p1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function x1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:p1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function g1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const b1={맑음:z0,흐림:n0,비:e0,눈:l0};function v1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function y1(){var v,N,w,j,A;const s=P(),r=x1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=ov((r==null?void 0:r.condition)??""),u=uv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=g1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=v1(r.observedAt),y=b1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function j1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=y=>{y.key==="Escape"&&m(),y.key==="ArrowLeft"&&x(-1),y.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Sr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(bp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Iv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Wv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(i0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Jv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function N1(){const s=P(),r=fv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===B0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address,d=r.category===Hl.LODGING?vu(s):null,[m,x]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:zn(u)}),n.jsx(c0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Tn,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ru,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function S1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function pl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=jr(),g=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?ju:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function ex(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(pl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Kv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(k0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(g),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function w1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(pl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(E1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function E1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function tx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(pl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function lx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(pl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ax(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(pl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function nx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(pl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function z1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(pl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ul=256,Us=318,En=168,Np=34,T1=16,Sp=4;function sx(s,r,o){const u=Ul*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function A1(s){if(s.length<2)return 15;for(let r=T1;r>Sp;r-=1){const o=s.map(d=>sx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=En-Np*2)return r}return Sp}function _1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!C1(f,x)?f:void 0}),f=x)}),u}function C1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function k1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function M1(s){return s.from?Fv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function O1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=_1(s,o),d=A1(f),m=k1(f.map(j=>sx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Us/2,y=g-En/2,v=2**d,N=[];for(let j=Math.floor(p/Ul);j<=Math.floor((p+Us)/Ul);j+=1)for(let A=Math.floor(y/Ul);A<=Math.floor((y+En)/Ul);A+=1){if(A<0||A>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:j*Ul-p,top:A*Ul-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Ul,height:Ul,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:En,viewBox:`0 0 ${Us} ${En}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,A)=>{const L=m[A];return n.jsx("a",{href:M1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function D1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function R1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=P0({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",D1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(O1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(S1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function U1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Wo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(pl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(H1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function H1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=su(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=su(p);return v.map((N,w)=>n.jsx(R1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Ry(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(pl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=X0(y.url),w=Q0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:Z0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{N&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:V0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(y0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(ml,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const B1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},q1=s=>[{id:"songs",label:"가요 다방",Component:ex},{id:"people",label:"인물 열전",Component:tx},{id:"chronicle",label:"시간의 골목",Component:lx},{id:"reading",label:s,Component:ax},{id:"postcard",label:"오늘의 엽서",Component:nx}];function $1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",B1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function Y1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=v=>{v.key==="Escape"&&m()},y=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=y,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Ep(x,o):void 0;return n.jsxs(pl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,N=Io(p,v),w=Po(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ma:dl,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const X1={songs:ex,daily:w1,people:tx,chronicle:lx,reading:ax,postcard:nx,quiz:z1,itinerary:U1,video:L1,event:Y1,story:$1},Q1="/v1/site/review",V1="/v1/site/reviews",zp=5,Tp=500;function Z1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[N,w]=O.useState(null),j=s.site.placeId,A=O.useCallback(async()=>{try{const Y=await fetch(`${V1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const X=await(await fetch(Q1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Nu(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Tn,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function K1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Hs=4,mt=56,ru=190,eu="#1b1a15",J1="#efe7d3",Ap="#bf2f1b";function ix(s=iu){return s-mt-ru-mt-24}function rx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function F1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const W1="/v1/image/relay?url=";async function I1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${W1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function P1(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=P1();d.clearRect(0,0,m,m),d.fillStyle=J1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await I1(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ru,H=ix(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=rx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Hs);if(Y.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${x}`;const X=F1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const G=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,G-20),d.lineTo(m-mt,G-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,G+6),p}const Cp="postcard.png";function ej(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,N]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",rx(Z,`“${R}”`,ix()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function Y(){var V,G;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((G=navigator.canShare)!=null&&G.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function tj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(nj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(sj,{}),n.jsx(Dn,{})]})}function cx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const lj=24,aj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function nj(){const s=P(),r=cx(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>lj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:aj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function sj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=cx(),d=r.roadAddress??r.address,m=Fe(s)[0],x=Mn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:zn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:zn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const ij=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,rj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function cj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ua(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var A;return j.enabled&&((A=j.name)==null?void 0:A.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:rj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:ij}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,A)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:zn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function oj({children:s}){var N,w,j,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),x=Ua(r),g=Fe(r)[0],p=pu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const uj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,fj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function dj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:fj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:uj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(u0,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function mj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Xp(),d=hj(f),m=Fe(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function hj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function pj(){const s=P(),r=s.place.category===Hl.LODGING,o={intro:Uy,info:By,rooms:Fo,menu:Fo,programs:Fo,booking:r?mp:s1,space:i1,inquiry:r1,exhibition:c1,photos:j1,festival:f1,local:m1,weather:y1,map:vp,faq:N1,...X1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Vv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!zv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(Z1,{}),n.jsx(ej,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(K1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?tj:r==="oasi"?cj:r==="studio"?oj:r==="pastel"?dj:r==="editorial"?mj:xj;return n.jsx(M0,{payload:s,children:n.jsx(o,{children:n.jsx(pj,{})})})}function xj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Tv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function gj(s){const{colors:r,look:o}=s.theme,u=tv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const bj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function vj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${bj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function yj(){return O.useEffect(()=>Uu(!0),[]),null}async function jj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(gj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=vj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(yj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?tu.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:kp})})):Mp?jj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):Sb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CRdElwJX.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Vh as F,it as L,Hl as P,B0 as S,Nj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DDjCshZ_.js b/solution/site/scripts/mockup/vendor/retired/index-DDjCshZ_.js new file mode 100644 index 0000000..0391d17 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DDjCshZ_.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Oh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function E0(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function z0(){return Rh||(Rh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function T0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(x)&&u(x),Z(M)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(x)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(x,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function _0(){return Bh||(Bh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function C0(){if(qh)return xt;qh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=C0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function M0(){if(Yh)return Os;Yh=1;var s=_0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,La=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,zr=Math.log,Tr=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ba=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{qr=!1}var Yl=null,$r=null,ai=null;function lf(){if(ai)return ai;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Fa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ai=$r=Yl=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Fr=null,Pn=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Wa==null||Wa!==ti(a)||(a=Wa,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function rs(){if(vc){var e=rn;if(e!==null)throw e}}function cs(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=nr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Cr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,bn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&vn(e,0):io|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Yn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Zi=null,jn=null,po=!1,Ki=!1,xo=!1,na=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Zi=jn=e:jn=jn.next=e),Ki=!0,po||(po=!0,Hg())}function Ns(e,t){if(!xo&&Ki){xo=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ki=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),mh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(m0,e),lr=null,tr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>O.createElement("svg",{ref:x,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!U0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(L0,{ref:d,iconNode:r,className:Op(`lucide-${D0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=_e("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=_e("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=_e("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=_e("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=_e("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=_e("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=_e("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=_e("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=_e("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=_e("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=_e("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=_e("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=_e("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=_e("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=_e("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=_e("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_b=_e("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",Cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=_e("youtube",kb),Up=O.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,g]=O.useState(!1),[x,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Qh(x.now)}${x.total?` / ${Qh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??Ib),x=u+m;if(x+g>Wb){f+=1;continue}o.push({stop:d,time:dr(x),until:dr(x+g),move:m}),u=x+g}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,g,x]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=_t(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return Cn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return Cn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return Cn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return Cn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Nv).slice(0,4)}function kn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=_t(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function yr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Ev),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return wv(s,Sv)}function yt(s,r){const o=Tn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function jr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[x,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return O.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=kn(s),d=Fe(s),m=pv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Uv[s??""]??"default"}function Nr(){return Gp(P().theme.templateId)}const pr=5,nu=1.8,Hv=3;function Lv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*pr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Hv),x=f?{href:f.url,label:`${Tn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=jr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:g||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=jr(s),f=ht(s),d=pl(s),m=Ha(s),g=kn(s),x=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var x;const s=P(),r=Nr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=jr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Nr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!tp(g)||!tp(x)?g===x:_u(g,x)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function Sr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Ls(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Ls(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Ys(s){return Gs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Gs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Gs(u).forEach(f=>{const d=o[f],m=u[f],g=ap(d)&&ap(m);o[f]=g?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Zp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(Sr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(Sr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Da(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Mu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Da(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(G){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>ku(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Ey(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Sr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return Cu(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function zy(s,r,o,u,f,d,m,g,x){const y=Ys(f),v=Ys(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Sr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Gs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Ys(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Ys(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(x,p),K=ce.measureSize(le),he=my(K),Xe=ry(g,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Ys(o),te=({dragHandler:bl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(bl.pointerDown()),qn.seek()},Ce=({scrollBody:bl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Fs,scrollBounds:Ba,options:{loop:pa}},xa)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),ql=pa?rl:rl&&qa,Ws=ql&&!zr.pointerDown();Ws&&Tr.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=cy(u,f,()=>te(Bn),bl=>Ce(Bn,bl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),gl=py(It,Bt,nl,Pt,j,tt),Un=Sy(v,oe,F,ze,Pt),Hn=wy(De,Te,at,gl,Un,Pt,m),pt=yy(ze),Ks=Xs(),Js=Ay(r,o,m,A),{slideRegistry:Ln}=Ny(ie,G,oe,fe,E,Oe),La=Ey(s,o,Ln,Hn,gl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Hn,gl,Un,Te,m,he,w,N,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:La,slidesHandler:Ty(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Gs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Gs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),g=Xs(),x=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Oy,gr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>g.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}gr.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,g]=O.useState(),x=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{_u(o.current,s)||(o.current=s,x())},[s,x]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,x())},[r,x]),O.useEffect(()=>{if(ay()&&m){gr.globalOptions=Ou.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Jp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(x);le.current=x;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function wr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:By.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Gy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Xy,{text:N},N.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,g]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=dp(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,g]=O.useState(0);O.useEffect(()=>d(new Date),[]);const x=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&x?Zy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=yr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),g=Nr();if(g==="reservation")return n.jsx(Py,{});if(g==="oasi")return n.jsx(e1,{});if(g==="studio")return n.jsx(t1,{});if(g==="pastel")return n.jsx(l1,{});if(g==="editorial")return n.jsx(a1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(Wy,{});if(x==="rooms.tabs")return n.jsx(Iy,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(s1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function s1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(wr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function mp(){const s=P(),r=yr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function r1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=pp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:_b,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(g=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:ep(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,mr(da(g))&&` · ${mr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:x1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,g=o!=null&&o.length?gp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:Tb,흐림:sb,비:tb,눈:ab};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,j,w,N,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=b1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function N1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),g=O.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(wr,{basis:"basis-full",children:n.jsx(hr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(hr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(hr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(bp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=Pv(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?yr(s):null,[m,g]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:Tn(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?yr(s):null,[m,g]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Nr(),x=O.useContext(ex),p=g==="reservation"?Eu:g==="oasi"?zu:g==="studio"?Tu:g==="pastel"?Au:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Jv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(x),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(z1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Us=318,zn=168,Np=34,A1=16,Sp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>Sp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=zn-Np*2)return r}return Sp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!k1(f,g)?f:void 0}),f=g)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function O1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Us/2,y=x-zn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Us)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+zn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:zn,viewBox:`0 0 ${Us} ${zn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:O1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",R1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(D1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function H1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),g=O.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(U1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function Y1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Ep(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:tx,daily:E1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",zp=5,Tp=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,g]=O.useState(""),[x,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",F1="#efe7d3",Ap="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Hs);if(G.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${g}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Cp="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[g,x]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Dn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=Mn(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Tn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Tn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Tn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function uj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function hj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Xp(),d=pj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:qy,rooms:Io,menu:Io,programs:Io,booking:r?mp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:vp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!Tv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Uu(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(jj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?au.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:kp})})):Mp?Nj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-tYaBKSUw.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,qb as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DEIJt6dW.js b/solution/site/scripts/mockup/vendor/retired/index-DEIJt6dW.js new file mode 100644 index 0000000..e7b2963 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DEIJt6dW.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const jb="modulepreload",Nb=function(s){return"/"+s},kh={},Sb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Nb(p),p in kh)return;kh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":jb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Lo={exports:{}},Cs={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mh;function wb(){if(Mh)return Cs;Mh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Cs.Fragment=r,Cs.jsx=o,Cs.jsxs=o,Cs}var Oh;function Eb(){return Oh||(Oh=1,Lo.exports=wb()),Lo.exports}var n=Eb(),Bo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return ue;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||w||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(Yo)),Yo}var Hh;function Ab(){return Hh||(Hh=1,$o.exports=Tb()),$o.exports}var Go={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lh;function _b(){if(Lh)return xt;Lh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=_b(),Go.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return ks;qh=1;var s=Ab(),r=ou(),o=Cb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=eh(t),e=th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=th(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),zs._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Dn=s.unstable_shouldYield,Rn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Un=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Hn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Bn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Bn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Fs,Sr=Math.log,wr=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(Sr(e)/wr|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Er(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ox(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var px=/[\n"\\]/g;function $t(e){return e.replace(px,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Mr(e,h,qt(t)):l!=null?Mr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Zu(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Cr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Cr(e)}function Mr(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hr=!1;if(jl)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Hr=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Hr=!1}var $l=null,Lr=null,ai=null;function ef(){if(ai)return ai;var e,t=Lr,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Zn),rf=" ",cf=!1;function of(e,t){switch(e){case"keyup":return Gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Qx(e,t){switch(e){case"compositionend":return uf(t);case"keypress":return t.which!==32?null:(cf=!0,rf);case"textInput":return e=t.data,e===rf&&cf?null:e;default:return null}}function Vx(e,t){if(Ja)return e==="compositionend"||!Gr&&of(e,t)?(e=ef(),ai=Lr=$l=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=bf(l)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eg=jl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Zr=null,Wn=null,Kr=!1;function Nf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kr||Fa==null||Fa!==ti(a)||(a=Fa,"selectionStart"in a&&Vr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Wn&&Fn(Wn,a)||(Wn=a,a=Fi(Zr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(T,oa)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(T,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(T,ee),z=c(oa,z,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(yb){return t(T,yb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),as(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),as(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=tc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ec(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ls=0;var ne=He(T,z,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Qf(!0),Vf=Qf(!1),Vl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),_f(e,null,l),t}return fi(e,a,t,l),di(e)}function ns(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}function pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function ss(){if(xc){var e=sn;if(e!==null)throw e}}function is(e,t,l,a){xc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(xc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Kf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Rc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=og(S,a);os(e,t,U,Ht(e))}else os(e,t,a,Ht(e))}catch($){os(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function pg(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=zd(e).queue;Ed(e,i,t,ae,l===null?pg:function(){return Td(e),l(a)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Td(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Ht())}function Dc(){return ut(zs)}function Ad(){return Fe().memoizedState}function _d(){return Fe().memoizedState}function xg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),ns(a,t,l)),t={cache:oc()},e.payload=t;return}t=t.return}}function gg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?kd(t,l):(l=Ir(e,t,l,a),l!==null&&(_t(l,e,a),Md(l,t,a)))}function Cd(e,t,l){var a=Ht();os(e,t,l,a)}function os(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))kd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=Ir(e,t,i,a),l!==null)return _t(l,e,a),Md(l,t,a),!0}return!1}function Rc(e,t,l,a){if(a={lane:2,revertLane:ho(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=Ir(e,l,a,2),t!==null&&_t(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function kd(e,t){un=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Md(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}var us={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};us.useEffectEvent=Qe;var Od={readContext:ut,use:Ti,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:xd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:kc,useDeferredValue:function(e,t){var l=yt();return Mc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=Ed.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ed(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,xd(ld.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},td.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,l)),e||Xl(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&bo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ds(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),bc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ng(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),bc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function am(e,t){switch(ac(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),bc(),e!==null&&q(za);break;case 24:El(We)}}function ms(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function nm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Kf(t,l)}catch(a){Me(e,e.return,a)}}}function sm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function hs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function im(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Fc(e,t,l){try{var a=e.stateNode;Xg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function cm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Pc=!1,om=typeof WeakSet=="function"?WeakSet:Set,st=null;function Sg(e,t){if(e=e.containerInfo,jo=nr,e=jf(e),Vr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(No={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=ph("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=vf(b,se),z=vf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!jo,No=jo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Um(){if(lt===2){lt=0;var e=ta,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{um(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Hm(){if(lt===4||lt===3){lt=0,Rn();var e=ta,t=gn,l=Rl,a=Sm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=ta=null,Lm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Tr(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=io,io=null;var c=ta,h=Rl;if(lt=0,gn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,ym(c.current),gm(c,c.current,h,l),Ae=b,ys(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,Lm(e,t)}}function qm(e,t,l){t=Gt(l,t),t=Bc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(qn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)qm(e,e,l);else for(;t!==null;){if(t.tag===3){qm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=$d(2),a=Kl(t,l,2),a!==null&&(Yd(l,a,t,e),qn(a,2),fl(a));break}}t=t.return}}function uo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new zg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(lo=!0,i.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&bn(e,0):ao|=l,xn===ve&&(xn=0)),fl(e)}function $m(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(qn(e,t),fl(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$m(e,l)}function Og(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),$m(e,l)}function Dg(e,t){return Pt(e,t)}var Zi=null,yn=null,fo=!1,Ki=!1,mo=!1,aa=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Zi=yn=e:yn=yn.next=e),Ki=!0,fo||(fo=!0,Ug())}function ys(e,t){if(!mo&&Ki){mo=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Qm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Qm(a,c));a=a.next}while(l);mo=!1}}function Rg(){Ym()}function Ym(){Ki=fo=!1;var e=0;aa!==0&&Vg()&&(e=aa);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Gm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||ys(e),aa!==0&&(aa=0)}function Gm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&Pm($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function fh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),uh.has(i)||(uh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function tb(e){Ul.D(e),fh("dns-prefetch",e,null)}function lb(e,t){Ul.C(e,t),fh("preconnect",e,t)}function ab(e,t,l){Ul.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ws(c))||t==="script"&&a.querySelector(Es(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e,t){Ul.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Es(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function sb(e,t,l){Ul.S(e,t,l);var a=jn;if(a&&e){var i=Ga(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(ws(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&_o(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ib(e,t){Ul.X(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function rb(e,t){Ul.M(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function dh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ga(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ga(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||cb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ga(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function mh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function cb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Es(e){return"script[async]"+e}function hh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(ws(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=mh(l),(i=Jt.get(i))&&_o(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Es(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Co(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ob(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ub(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(ws(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=mh(a),(i=Jt.get(i))&&_o(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ko=0;function fb(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0ko?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(db,e),lr=null,tr.call(e))}function db(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),qo.exports=kb(),qo.exports}var tu=Mb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ob=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Db=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Yh=s=>{const r=Db(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Rb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ub={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Ub,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!Rb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Hb,{ref:d,iconNode:r,className:kp(`lucide-${Ob(Yh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Yh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",Lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],qb=_e("bed-double",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Yb=_e("calendar-check",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Xb=_e("calendar-days",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Vb=_e("car",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zn=_e("chevron-left",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ib=_e("clock",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],e0=_e("cloud-rain",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],l0=_e("cloud-snow",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],n0=_e("cloud",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i0=_e("copy",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],c0=_e("external-link",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],u0=_e("instagram",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],gr=_e("map-pin",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M5 12h14",key:"1ays0h"}]],x0=_e("minus",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Xo=_e("navigation",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],y0=_e("play",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],N0=_e("plus",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],w0=_e("rotate-ccw",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],z0=_e("sun",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],br=_e("x",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],k0=_e("youtube",C0),Dp=O.createContext(null);function M0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function O0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function D0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function U0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Gh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function L0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),N=O.useRef(null),w=O.useRef(null),j=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(O0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(R0,{}):n.jsx(D0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(U0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(H0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Gh(g.now)}${g.total?` / ${Gh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},B0={OWNER:1,CRAWL:3,TEMPLATE:5},Xh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},q0=[Xh.VERIFIED,Xh.CORRECTED];function Rp(s){return q0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function Tn(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?$0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function $0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const G0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function X0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Q0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function V0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Z0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function K0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function J0(s,r){const o=G0[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:K0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const F0=1260,W0=60,I0="10:00",Qh=["봄","여름","가을","겨울"];function Vh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function P0(s){const r=Vh(s.startTime??"")??Vh(I0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??W0),g=u+m;if(g+x>F0){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function ev(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Qh[o];return r%3===0&&s.getDate()<=15?[Qh[(o+3)%4],u]:[u]}function Zh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Kh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Zh(s),[m,x,g]=Zh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function tv(s){return{surface:Kh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Kh(s.bg,s.text,.2)}}const Hp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function lv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Jh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function av(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Jh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Jh.includes(f.channel)&&!av(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??lv(s)[0]}function xu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const nv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function sv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:sv(u.facts.filter(m=>!nv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:iv(u),prices:cv(u),href:`/${r.path}/${u.slug}`}})}function iv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const rv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function cv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?rv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function ov(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function uv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function fv(s){return Y0(s.faqs)}function dv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function mv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=J0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function hv(s,r){return An(s,[r])[0]}const pv=["reservation_required","reservation_channel"];function xv(s){return An(s,pv)}const gv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function bv(s){return An(s,gv)}const vv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function yv(s){return An(s,vv)}const jv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return An(s,jv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Bp,wv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Ev(s){return hu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function $p(s){if(s.place.category!==da.LODGING)return null;const r={offers:Ev(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,wv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function zv(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Sv(s,Nv)}function gt(s,r){const o=Bs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function vu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function Tv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(L0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function vr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return Cv(s).join(" ")}function Cv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const y=ua(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const kv=6e3,Mv=5;function Ov(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var A;return(A=j.alt)==null?void 0:A.trim()}).sort((j,A)=>Number(A.isPrimary)-Number(j.isPrimary)).slice(0,Mv),[g,p]=O.useState(0),[y,v]=O.useState(!1),N=O.useRef(null),w=O.useCallback(j=>p(A=>(A+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),kv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const A=N.current;if(N.current=null,A===null)return;const L=j.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,A)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Fh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Fh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Fh({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=_n(s),d=Ke(s),m=hv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Rv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Rv[s??""]??"default"}function yr(){return Yp(P().theme.templateId)}const hr=5,lu=1.8,Uv=3;function Hv(s){const r=s*hr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(hr)} { opacity: 1; } + ${o(hr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Lv(s,r){return((r-s)%r*hr+lu).toFixed(1)}function Bv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Uv),g=f?{href:f.url,label:`${Bs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Hv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function $v(){const s=P(),r=bu(s),o=vr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const qs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Gv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Xv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Wh(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of dv(s)){const m=Gv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Wh(u.length+1),label:x||Xv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Wh(u.length+1),label:"오시는 길",anchor:"location"}),u}function yu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=vr(s),f=ht(s),d=hl(s),m=Ua(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:qs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Vv(){var g;const s=P(),r=yr();if(r==="reservation")return n.jsx(Bv,{});if(r==="oasi")return n.jsx(qv,{});if(r==="studio")return n.jsx($v,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Qv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Ov,{});if(o==="hero.split")return n.jsx(Dv,{});const{place:u,narrative:f}=s,d=vr(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(gr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function ju(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Zv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ih(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Kv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Nu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Jv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Nu(s))},${r},${o}`}function Fv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Nu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Nu(s))}/-/transit`}function Wv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Iv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Su({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const Pv={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=yr(),y=p==="reservation"?Su:p==="oasi"?wu:p==="studio"?Eu:p==="pastel"?zu:p==="editorial"?yu:ey;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...Pv[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ey({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ty(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ph(s){return ty(s)||Array.isArray(s)}function ly(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!Ph(x)||!Ph(g)?x===g:Tu(x,g)})}function ep(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ay(s,r){if(s.length!==r.length)return!1;const o=ep(s),u=ep(r);return o.every((f,d)=>{const m=u[d];return Tu(f,m)})}function Au(s){return typeof s=="number"}function au(s){return typeof s=="string"}function jr(s){return typeof s=="boolean"}function tp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Us(s,r){return Ge(s-r)}function ny(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Us(Ge(s),Ge(r));return Ge(o/s)}function sy(s){return Math.round(s*100)/100}function $s(s){return Ys(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function lp(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=tp(d)&&tp(m);o[f]=x?Qp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function iy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Gs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function ry(s,r,o,u){const f=Gs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function cy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:A,width:L}=j;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Vp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function oy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Gs(),W=Gs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(jr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(_u(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),Nt=Us(De,Xe),It=Us(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=ny(tt,Nt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function uy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(nu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,A=N/w;return w&&!j&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function fy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function dy(s){function r(u){return s*(u/100)}return{measure:r}}function my(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(jr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function hy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=_u(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function py(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",A=Ge(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(j),R=!A,Z=Cu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:A}=x;return m.slice(j,A)}return{snapsContained:g,scrollContainLimit:x}}function gy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function by(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function vy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function yy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function N(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function jy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,A,L)=>{const H=!A,G=Cu(L,A);if(H){const R=al(L[0])+1;return lp(R)}if(G){const R=Zs(d)-al(L)[0]+1;return lp(R,al(L)[0])}return j})}return{slideRegistry:p}}function Ny(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(j){const A=s?m(j):x(j),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(j,A){const L=[j,j+o,j-o];if(!s)return j;if(!A)return g(L);const H=L.filter(G=>_u(G)===A);return H.length?g(H):al(L)-o}function v(j,A){const L=r[j]-f.get(),H=y(L,A);return{index:j,distance:H}}function N(j,A){const L=f.get()+j,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:j};const Z=r[H]-G,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Sy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function wy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Au(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(jr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Os(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=sy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ey(s,r,o,u,f,d,m,x,g){const y=$s(f),v=$s(f).reverse(),N=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Os(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=j(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(y,Y);return L(W,-o,!0)}function R(){return N.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function zy(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(jr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ty(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(j&&G||!j&&!G)&&A.push(H),A},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const A=v(j);return j&&(d=A),j||(m=A),A}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=A(),N=o.map(m),w=L();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=Au(o);function w(H,G){return $s(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function j(H){return H.length?$s(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return N?w(H,o):j(H)}return{groupSlides:A}}function Cy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=fy(),le=W.measure(r),xe=o.map(W.measure),ce=cy(g,p),K=ce.measureSize(le),he=dy(K),Xe=iy(x,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,M,f),E=_y(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=yy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=xy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=gy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=$s(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Bn,options:{loop:sl}})=>{sl||Bn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Bn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:Sr,animation:wr,eventHandler:Fs,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=bl.settled(),Ba=!La.shouldConstrain(),Bl=pa?rl:rl&&Ba,Ws=Bl&&!Sr.pointerDown();Ws&&wr.stop();const Is=Bn.get()*xa+bt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Ws&&Fs.emit("settle"),Bl||Fs.emit("scroll")},De=ry(u,f,()=>te(Hn),bl=>Ce(Hn,bl)),tt=.68,Nt=oe[Te.get()],It=Os(Nt),nl=Os(Nt),Bt=Os(Nt),Pt=Os(Nt),gl=hy(It,Bt,nl,Pt,N,tt),Dn=Ny(v,oe,F,ze,Pt),Rn=Sy(De,Te,at,gl,Dn,Pt,m),pt=vy(ze),Ks=Gs(),Js=Ty(r,o,m,A),{slideRegistry:Un}=jy(ie,G,oe,fe,E,Oe),Ha=wy(s,o,Un,Rn,gl,Ks,m,V),Hn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:oy(ce,s,u,f,Pt,uy(ce,f),It,De,Rn,gl,Dn,Te,m,he,w,j,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:my(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:py(ze,Bt,Pt,gl,he),scrollLooper:by(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Dn,scrollTo:Rn,slideLooper:Ey(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:zy(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Un,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return Hn}function ky(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const My={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Oy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Dy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function xr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Oy(f),m=Dy(d),x=Gs(),g=ky(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,A=ce;let L=!1,H,G=p(My,xr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Cy(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}xr.globalOptions=void 0;function ku(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Tu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ay(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ly()&&m){xr.globalOptions=ku.globalOptions;const p=xr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}ku.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ry(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function kn({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=ku({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(ap,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ap,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Nr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function ap({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Mu({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ou({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Fp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function sp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Wp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Xs({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(br,{className:"size-5"})})]}),f]})]}):null}function Uy(){const s=P(),{narrative:r,place:o}=s,u=mv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const ip=10;function rp(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/ip);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/ip)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Qo=s=>!s.note&&Hy.has(s.value.trim()),Ly=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function By(){var N,w;const s=P(),r=xu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(j=>{var A,L,H;return j.confirmed&&[(A=j.stayGuide)==null?void 0:A.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var A;return((A=j.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Qo(j)?!1:Ly.has(j.label)||d.some(A=>A.key===j.key&&A.group==="rules"),p=f.map(j=>{var A;return((A=j.stayGuide)==null?void 0:A.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(j=>!Qo(j)),children:n.jsx(Yy,{rows:v.filter(Qo)})}),p.map(j=>n.jsx(Gy,{text:j},j.slice(0,32))),n.jsx(Xy,{})]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Vo=new Set(["가능","있음"]),qy="#16a34a",$y="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Vo.has(u.value))-Number(Vo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Vo.has(o.value),f=u?qy:$y;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(br,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Gy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Xy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ms,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ms,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ms,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ms,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ms,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ms({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Zo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Ko(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ip(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[N,w]=O.useState(null),[j,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||N));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Xb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Ko(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Ko(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(zn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Zo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Ib,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(x0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(N0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Ko(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(w0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:qs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(yu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Jo(){var v;const s=P(),r=ht(s),o=$p(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=yr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=hl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Mu,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(s1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Ou,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(Xs,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:vu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(Xs,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ip,{})})]})}function s1({images:s,name:r}){return n.jsx(kn,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Nr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Ke(s),o=xv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Fp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(sp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(sp,{href:f.url,variant:"outline",external:!0,children:vu(f)},f.url))]})})]})})}function fp(){const s=P(),r=$p(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Yb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(qb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:vu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ip,{})]})})}function r1(){const s=P(),r=bv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Mu,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Fp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(ev()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(kn,{label:r,children:s.map(d=>n.jsx(Nr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Xs,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Zv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Hs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Hs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Hs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Hs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Hs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(fa(N))).length,g=mp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??mp[0],y=v=>p.test(fa(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[ju(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Hs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:gr,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(kn,{label:s,children:f.map(x=>n.jsx(Nr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Xs,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ih(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ih(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(fa(x))&&` · ${mr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:x1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:z0,흐림:n0,비:e0,눈:l0};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,N,w,j,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=ov((r==null?void 0:r.condition)??""),u=uv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Mu,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=y=>{y.key==="Escape"&&m(),y.key==="ArrowLeft"&&x(-1),y.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsx(kn,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Nr,{basis:"basis-full",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(br,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Fo({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Iv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Wv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(i0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Jv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=fv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===B0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Wp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(gr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(c0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function Mn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=yr(),g=x==="reservation"?Su:x==="oasi"?wu:x==="studio"?Eu:x==="pastel"?zu:x==="editorial"?yu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function On({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(kn,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function ex(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Kv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(k0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function tx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(On,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function lx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(On,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ax(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(On,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function nx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(On,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(On,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Ds=318,En=168,yp=34,A1=16,jp=4;function sx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>jp;r-=1){const o=s.map(d=>sx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ds-yp*2&&f<=En-yp*2)return r}return jp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Fv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(j=>sx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Ds/2,y=g-En/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Ds)/Hl);j+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+En)/Hl);A+=1){if(A<0||A>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:j*Hl-p,top:A*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ds,height:En,viewBox:`0 0 ${Ds} ${En}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,A)=>{const L=m[A];return n.jsx("a",{href:O1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=P0({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Wo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=su(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(On,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=su(p);return v.map((N,w)=>n.jsx(U1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Ry(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=X0(y.url),w=Q0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:Z0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{N&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:V0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(y0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(ml,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:ex},{id:"people",label:"인물 열전",Component:tx},{id:"chronicle",label:"시간의 골목",Component:lx},{id:"reading",label:s,Component:ax},{id:"postcard",label:"오늘의 엽서",Component:nx}];function Y1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=v=>{v.key==="Escape"&&m()},y=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=y,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Wp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,N=Io(p,v),w=Po(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ma:dl,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:ex,daily:E1,people:tx,chronicle:lx,reading:ax,postcard:nx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",wp=5,Ep=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[N,w]=O.useState(null),j=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Xs,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Rs=4,mt=56,ru=190,eu="#1b1a15",F1="#efe7d3",zp="#bf2f1b";function ix(s=iu){return s-mt-ru-mt-24}function rx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ru,H=ix(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=rx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Rs);if(G.length>Rs){let W=R[Rs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Rs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,N]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",rx(Z,`“${R}”`,ix()).length<=Rs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(kn,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Mn,{})]})}function cx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=cx(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=cx(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Bs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Bs(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ua(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var A;return j.enabled&&((A=j.name)==null?void 0:A.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,A)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Bs(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function uj({children:s}){var N,w,j,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=Ua(r),g=Ke(r)[0],p=pu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Mn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(u0,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Mn,{})]})}function hj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Gp(),d=pj(f),m=Ke(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:qs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Uy,info:By,rooms:Jo,menu:Jo,programs:Jo,booking:r?fp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:gp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Vv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!zv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(M0,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Tv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Mn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=tv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const pr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Du(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Du(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(pr).render(n.jsxs(O.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(jj,{})]})),Du(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?tu.hydrateRoot(pr,n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:_p})})):Cp?Nj(Cp).catch(s=>{pr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Du(!1)}):Sb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-4KfEHhu-.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(pr).render(n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Xh as F,it as L,da as P,B0 as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DLh1oqRN.js b/solution/site/scripts/mockup/vendor/retired/index-DLh1oqRN.js new file mode 100644 index 0000000..e056974 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DLh1oqRN.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Oh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function E0(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function z0(){return Rh||(Rh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function T0(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(g)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function _0(){return Bh||(Bh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function C0(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=C0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function M0(){if(Yh)return Os;Yh=1;var s=_0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,La=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,zr=Math.log,Tr=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ba=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{qr=!1}var Yl=null,$r=null,ai=null;function lf(){if(ai)return ai;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Fa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ai=$r=Yl=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Fr=null,Pn=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Wa==null||Wa!==ti(a)||(a=Wa,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function rs(){if(vc){var e=rn;if(e!==null)throw e}}function cs(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=nr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Cr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,bn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&vn(e,0):io|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Yn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Zi=null,jn=null,po=!1,Ki=!1,xo=!1,na=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Zi=jn=e:jn=jn.next=e),Ki=!0,po||(po=!0,Hg())}function Ns(e,t){if(!xo&&Ki){xo=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ki=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),mh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),mh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(m0,e),lr=null,tr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!U0(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(L0,{ref:d,iconNode:r,className:Op(`lucide-${D0(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=_e("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=_e("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=_e("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=_e("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=_e("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=_e("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=_e("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=_e("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=_e("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=_e("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=_e("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=_e("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=_e("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=_e("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=_e("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=_e("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_b=_e("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",Cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=_e("youtube",kb),Up=O.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??Ib),g=u+m;if(g+x>Wb){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return Cn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return Cn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return Cn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return Cn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Nv).slice(0,4)}function kn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function yr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Ev),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return wv(s,Sv)}function yt(s,r){const o=Tn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function jr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[g,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(A=>(A+N+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=kn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Uv[s??""]??"default"}function Nr(){return Gp(P().theme.templateId)}const pr=5,nu=1.8,Hv=3;function Lv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*pr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Tn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=jr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=jr(s),f=ht(s),d=pl(s),m=Ha(s),x=kn(s),g=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=Nr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=jr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Nr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:_u(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function Sr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Ls(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Ls(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Ys(s){return Gs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Gs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Gs(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function j(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function N(){m=null,x=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function x(){return d}function g(j){return d=m(j),v}function p(j){return y().set(x()+j)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(Sr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function x(v){return u=v,f=v,m(v)}function g(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(Sr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function N(){v=!0,g&&g.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Mu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=x;return m.slice(N,A)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(j){return j===1?g(o.get()):j===-1?x(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=j(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(x,g).map((N,A,L)=>{const H=!A,G=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(G){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):x(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return g(L);const H=L.filter(G=>ku(G)===A);return H.length?g(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,j){const w=f.byDistance(v,j);x(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);x(N)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Sr(x)||x(w,H))&&N(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Cu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function x(j){return`translate3d(0px,${j}px,0px)`}function g(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Ys(f),v=Ys(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Sr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(N=>{g||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>x.observe(N))}function y(){x&&x.disconnect(),g=!0}function v(N){return Gs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Ys(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Ys(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(g,p),K=ce.measureSize(le),he=my(K),Xe=ry(x,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Ys(o),te=({dragHandler:bl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(bl.pointerDown()),qn.seek()},Ce=({scrollBody:bl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Fs,scrollBounds:Ba,options:{loop:pa}},xa)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),ql=pa?rl:rl&&qa,Ws=ql&&!zr.pointerDown();Ws&&Tr.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=cy(u,f,()=>te(Bn),bl=>Ce(Bn,bl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),gl=py(It,Bt,nl,Pt,j,tt),Un=Sy(v,oe,F,ze,Pt),Hn=wy(De,Te,at,gl,Un,Pt,m),pt=yy(ze),Ks=Xs(),Js=Ay(r,o,m,A),{slideRegistry:Ln}=Ny(ie,G,oe,fe,E,Oe),La=Ey(s,o,Ln,Hn,gl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Hn,gl,Un,Te,m,he,w,N,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:La,slidesHandler:Ty(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Gs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Gs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Xs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=g,A=ce;let L=!1,H,G=p(Oy,gr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{_u(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ay()&&m){gr.globalOptions=Ou.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Ou.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,x())},N=()=>{j&&(j=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function wr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},x=window.scrollY,g=document.body,p=g.style.position,y=g.style.top,v=g.style.width,j=g.style.overflow;return g.style.position="fixed",g.style.top=`-${x}px`,g.style.width="100%",g.style.overflow="hidden",window.addEventListener("keydown",m),()=>{g.style.position=p,g.style.top=y,g.style.width=v,g.style.overflow=j,window.scrollTo(0,x),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(N=>N.key));for(const N of d)x.has(N.key)||(m.push(N),x.add(N.key));const g=N=>Ko(N)?!1:By.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(N=>!g(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Gy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Xy,{text:N},N.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=yr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=Nr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(s1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function s1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(wr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function mp(){const s=P(),r=yr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function r1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(j=>v.test(da(j))).length,g=pp.filter((v,j)=>j===0||x(v)>0&&x(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const j=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:_b,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(x=>n.jsx(wr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(da(x))&&` · ${mr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:x1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:Tb,흐림:sb,비:tb,눈:ab};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,j,w,N,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&x(-1),A.key==="ArrowRight"&&x(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",g),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(wr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(bp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:Tn(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?yr(s):null,[m,x]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Nr(),g=O.useContext(ex),p=x==="reservation"?Eu:x==="oasi"?zu:x==="studio"?Tu:x==="pastel"?Au:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(g),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Us=318,zn=168,Np=34,A1=16,Sp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>Sp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=zn-Np*2)return r}return Sp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(N=>ix(N.lat,N.lng,d))),x=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,g=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=x-Us/2,y=g-zn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Us)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+zn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:zn,viewBox:`0 0 ${Us} ${zn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:O1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(U1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:tx},{id:"people",label:"인물 열전",Component:lx},{id:"chronicle",label:"시간의 골목",Component:ax},{id:"reading",label:s,Component:nx},{id:"postcard",label:"오늘의 엽서",Component:sx}];function Y1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))})]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Ep(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:tx,daily:E1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",zp=5,Tp=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Hs=4,mt=56,ou=190,lu="#1b1a15",F1="#efe7d3",Ap="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,j=Math.max(y/g.width,v/g.height),w=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Hs);if(G.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Cp="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Dn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],x=Mn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Tn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Tn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Tn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function uj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function hj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Xp(),d=pj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:qy,rooms:Io,menu:Io,programs:Io,booking:r?mp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:vp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!Tv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Uu(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(jj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?au.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:kp})})):Mp?Nj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-Cn-3wMiA.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,qb as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DP4z7lPp.js b/solution/site/scripts/mockup/vendor/retired/index-DP4z7lPp.js new file mode 100644 index 0000000..dde785e --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DP4z7lPp.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Nb="modulepreload",Sb=function(s){return"/"+s},Oh={},wb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Sb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":Nb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Bo={exports:{}},Ms={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Eb(){if(Dh)return Ms;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ms.Fragment=r,Ms.jsx=o,Ms.jsxs=o,Ms}var Rh;function zb(){return Rh||(Rh=1,Bo.exports=Eb()),Bo.exports}var n=zb(),qo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Tb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new Y;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var G={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,G=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){G=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(Y(G),G=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||w||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(Yo)),Yo}var Bh;function _b(){return Bh||(Bh=1,Go.exports=Ab()),Go.exports}var Xo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Cb(){if(qh)return xt;qh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Xo.exports=Cb(),Xo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Mb(){if(Gh)return Os;Gh=1;var s=_b(),r=ou(),o=kb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),As._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,xl=s.unstable_cancelCallback,Un=s.unstable_shouldYield,Hn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Ln=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Bn=s.unstable_LowPriority,gl=s.unstable_IdlePriority,qn=s.log,$n=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof qn=="function"&&$n(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Fs,wr=Math.log,Er=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(wr(e)/Er|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function zr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Or(e,h,qt(t)):l!=null?Or(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){kr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),kr(e)}function Or(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lr=!1;if(yl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Lr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Lr=!1}var Gl=null,Br=null,ai=null;function lf(){if(ai)return ai;var e,t=Br,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Jn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Ja)return e==="compositionend"||!Xr&&ff(e,t)?(e=lf(),ai=Br=Gl=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=yl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Kr=null,Pn=null,Jr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jr||Fa==null||Fa!==ti(a)||(a=Fa,"selectionStart"in a&&Zr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Kr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Nl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Nl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Nl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Nl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Nl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(jb){return t(T,jb)}),je&&Nl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),ss(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),ss(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=lc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=tc(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ns=0;var ne=He(T,z,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Zf(!0),Kf=Zf(!1),Zl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),kf(e,null,l),t}return fi(e,a,t,l),di(e)}function is(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function xc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var gc=!1;function rs(){if(gc){var e=sn;if(e!==null)throw e}}function cs(e,t,l,a){gc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(gc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Uc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);fs(e,t,U,Ht(e))}else fs(e,t,a,Ht(e))}catch($){fs(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Dc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Ht())}function Rc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),is(a,t,l)),t={cache:uc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?Od(t,l):(l=Pr(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();fs(e,t,l,a)}function fs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=Pr(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:po(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=Pr(e,l,a,2),t!==null&&At(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){un=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ds={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ds.useEffectEvent=Qe;var Rd={readContext:ut,use:Ti,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=vt();return Oc(l,e,t)},useTransition:function(){var e=_c(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return qe(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&vo(t.stateNode.containerInfo),qe(t),null;case 10:return wl(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)hs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,hs(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Nl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),hs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Nl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wl(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wl(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return wl(t.type),null;case 22:case 23:return Dt(t),vc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wl(We),null;case 25:return null;default:return null}}function sm(e,t){switch(nc(t),t.tag){case 3:wl(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:wl(t.type);break;case 22:case 23:Dt(t),vc(),e!==null&&q(za);break;case 24:wl(We)}}function ps(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function xs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Wc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=vl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,l),e=e.sibling;e!==null;)Pc(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,eo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,No=nr,e=Sf(e),Zr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(So={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!No,So=No=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Hn();var e=la,t=gn,l=Dl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=ro,ro=null;var c=la,h=Dl;if(lt=0,gn=la=null,Dl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ns(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=qc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function fo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(ao=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&bn(e,0):no|=l,xn===ve&&(xn=0)),fl(e)}function Ym(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Rg(e,t){return Pt(e,t)}var Zi=null,yn=null,mo=!1,Ki=!1,ho=!1,na=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Zi=yn=e:yn=yn.next=e),Ki=!0,mo||(mo=!0,Hg())}function Ns(e,t){if(!ho&&Ki){ho=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);ho=!1}}function Ug(){Xm()}function Xm(){Ki=mo=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||Ns(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function lb(e){Rl.D(e),mh("dns-prefetch",e,null)}function ab(e,t){Rl.C(e,t),mh("preconnect",e,t)}function nb(e,t,l){Rl.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(zs(c))||t==="script"&&a.querySelector(Ts(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function sb(e,t){Rl.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function ib(e,t,l){Rl.S(e,t,l);var a=jn;if(a&&e){var i=Ya(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(zs(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Co(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function rb(e,t){Rl.X(e,t);var l=jn;if(l&&e){var a=Ya(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function cb(e,t){Rl.M(e,t);var l=jn;if(l&&e){var a=Ya(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Ts(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ya(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ya(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(zs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ob(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ya(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ob(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Ts(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(zs(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Co(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Ts(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),ko(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ub(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(zs(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Co(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Mo=0;function db(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Mo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(mb,e),lr=null,tr.call(e))}function mb(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=Mb(),$o.exports}var tu=Ob();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Db=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Rb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Op=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Ub=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Op("lucide",f),...!d&&!Ub(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Lb,{ref:d,iconNode:r,className:Op(`lucide-${Db(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$b=_e("bed-double",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Yb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Qb=_e("calendar-days",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Zb=_e("car",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=_e("chevron-left",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pb=_e("clock",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],t0=_e("cloud-rain",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],a0=_e("cloud-snow",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],s0=_e("cloud",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r0=_e("copy",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],o0=_e("external-link",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],f0=_e("instagram",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Dp=_e("mail",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Rp=_e("menu",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M5 12h14",key:"1ays0h"}]],g0=_e("minus",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Qo=_e("navigation",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=_e("phone",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],j0=_e("play",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S0=_e("plus",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],E0=_e("rotate-ccw",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T0=_e("sun",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],_0=_e("utensils",A0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],M0=_e("youtube",k0),Up=O.createContext(null);function O0({payload:s,children:r}){return n.jsx(Up.Provider,{value:s,children:r})}function P(){const s=O.useContext(Up);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function D0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function B0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),N=O.useRef(null),w=O.useRef(null),j=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),G={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)G.left="8px",G.right="8px";else{G.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();G.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(G)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=G=>{var le,xe;const W=G.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(X=o)=>{const V=N.current,G=r[X];!V||!G||(V.getAttribute("src")!==G.audioUrl&&(V.src=G.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),Y(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(D0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(U0,{}):n.jsx(R0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(L0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const Hl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},q0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return $0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function _n(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Lp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Lp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Lp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const X0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Q0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function V0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Z0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function K0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function J0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function F0(s,r){const o=X0[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:J0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const W0=1260,I0=60,P0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(P0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??I0),g=u+m;if(g+x>W0){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[Hl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[Hl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[Hl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[Hl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??av(s)[0]}function xu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Bp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===Hl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Y0(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=F0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Bp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return Cn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return Cn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return Cn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return Cn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return Cn(s,Nv).slice(0,4)}function kn(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=$p,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return hu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=qp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function vu(s){if(s.place.category!==Hl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Ev),links:Fe(s),contacts:Mn(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function Mn(s){return wv(s,Sv)}function yt(s,r){const o=zn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function yu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(B0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const _v=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===Hl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:_v;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function yr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=kn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var A;return(A=j.alt)==null?void 0:A.trim()}).sort((j,A)=>Number(A.isPrimary)-Number(j.isPrimary)).slice(0,Ov),[g,p]=O.useState(0),[y,v]=O.useState(!1),N=O.useRef(null),w=O.useCallback(j=>p(A=>(A+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Mv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const A=N.current;if(N.current=null,A===null)return;const L=j.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,A)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=kn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Uv[s??""]??"default"}function jr(){return Yp(P().theme.templateId)}const pr=5,lu=1.8,Hv=3;function Lv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*pr+lu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${zn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=bu(s),o=yr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=kn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const $s="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Xp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function ju({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Xp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=yr(s),f=ht(s),d=hl(s),m=Ua(s),x=kn(s),g=Fe(s)[0],p=Mn(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:$s},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=jr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=yr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function Nu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=jr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?ju:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Au(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function _u(s){return typeof s=="number"}function au(s){return typeof s=="string"}function Nr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Ls(s,r){return Ye(s-r)}function sy(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Ls(Ye(s),Ye(r));return Ye(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Ys(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Xs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Xs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:A,width:L}=j;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Da(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,A,L,H,Y){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},G=Xs(),W=Xs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!Y)return;function Ce(tt){(Nr(Y)||Y(te,tt))&&fe(tt)}const De=r;G.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){G.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(Cu(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Ls(De,Xe),It=Ls(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(nu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,A=N/w;return w&&!j&&Ye(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],G=N(Z?s:u[X]);if(Ye(G-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(Nr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),G=!g;let W=0;return G?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Cu(W),v=y,X}function w(){const V=u.get()-r.get();return Ye(V)<.001}function j(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function Y(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",A=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!A,Z=ku(o,A);return R?H:Z||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:A}=x;return m.slice(j,A)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ye)}function N(){return u.map(A=>o[d]-A[d]).map(A=>-Ye(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,A,L)=>{const H=!A,Y=ku(L,A);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((A,L)=>Ye(A)-Ye(L))[0]}function p(j){const A=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-A,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(j,A){const L=[j,j+o,j-o];if(!s)return j;if(!A)return g(L);const H=L.filter(Y=>Cu(Y)===A);return H.length?g(H):al(L)-o}function v(j,A){const L=r[j]-f.get(),H=y(L,A);return{index:j,distance:H}}function N(j,A){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:j};const Z=r[H]-Y,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(A));_u(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Nr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Rs(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=iy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(Y());function w(G,W){return G.reduce((le,xe)=>le-f[xe],W)}function j(G,W){return G.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(G){return d.map((W,le)=>({start:W-u[le]+.5+G,end:W+r-.5+G}))}function L(G,W,le){const xe=A(W);return G.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Rs(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const G=m[0],W=j(v,G);return L(W,o,!1)}function Y(){const G=r-m[0]-1,W=j(y,G);return L(W,-o,!0)}function R(){return N.every(({index:G})=>{const W=y.filter(le=>le!==G);return w(W,r)<=.1})}function Z(){N.forEach(G=>{const{target:W,translate:le,slideLocation:xe}=G,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(G=>G.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Nr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&A.push(H),A},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const A=v(j);return j&&(d=A),j||(m=A),A}return{init:p,destroy:y,get:N}}function _y(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=A(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function A(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Z)=>{const X=!R,V=ku(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,Y){return Gs(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Gs(H).reduce((Y,R,Z)=>{const X=al(Y)||0,V=X===0,G=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&G?v(x):0,K=Ye(le-ce-(W+xe));return Z&&K>r+g&&Y.push(R),G&&Y.push(H.length),Y},[]).map((Y,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,Y)}):[]}function A(H){return N?w(H,o):j(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,G=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(g,p),K=ce.measureSize(le),he=my(K),Xe=ry(x,K),ie=!v&&!!Y,M=v||!!Y,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=_y(ce,le,xe,o,M,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,G),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,Y,G),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:gl,scrollBody:qn,scrollBounds:$n,options:{loop:sl}})=>{sl||$n.constrain(gl.pointerDown()),qn.seek()},Ce=({scrollBody:gl,translate:qn,location:$n,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:wr,animation:Er,eventHandler:Fs,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=gl.settled(),Ba=!La.shouldConstrain(),ql=pa?rl:rl&&Ba,Ws=ql&&!wr.pointerDown();Ws&&Er.stop();const Is=$n.get()*xa+gt.get()*(1-xa);sl.set(Is),pa&&(il.loop(gl.direction()),bt.loop()),qn.to(sl.get()),Ws&&Fs.emit("settle"),ql||Fs.emit("scroll")},De=cy(u,f,()=>te(Bn),gl=>Ce(Bn,gl)),tt=.68,jt=oe[Te.get()],It=Rs(jt),nl=Rs(jt),Bt=Rs(jt),Pt=Rs(jt),xl=py(It,Bt,nl,Pt,N,tt),Un=Sy(v,oe,F,ze,Pt),Hn=wy(De,Te,at,xl,Un,Pt,m),pt=yy(ze),Ks=Xs(),Js=Ay(r,o,m,A),{slideRegistry:Ln}=Ny(ie,Y,oe,fe,E,Oe),Ha=Ey(s,o,Ln,Hn,xl,Ks,m,V),Bn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Hn,xl,Un,Te,m,he,w,j,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:xl,scrollBounds:xy(ze,Bt,Pt,xl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Un,scrollTo:Hn,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:Ty(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Ln,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return Bn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Xs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,A=ce;let L=!1,H,Y=p(Oy,gr.globalOptions),R=p(Y),Z=[],X,V,G;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;G=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,G,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(Y=p(Y,Oe),R=y(Y),Z=te||Z,W(),H=le(R),v([Y,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&G.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return G}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function Mu(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Au(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ay()&&m){gr.globalOptions=Mu.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function On({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,A]=O.useState([]),[L,H]=O.useState(0),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),G=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:G,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":G,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Sr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Tn({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),f]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Nu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Ly=new Set(["가능","불가","있음","없음"]),Vo=s=>!s.note&&Ly.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,w;const s=P(),r=xu(s),o=_n(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var A,L,H;return j.confirmed&&[(A=j.stayGuide)==null?void 0:A.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var A;return((A=j.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Vo(j)?!1:By.has(j.label)||d.some(A=>A.key===j.key&&A.group==="rules"),p=f.map(j=>{var A;return((A=j.stayGuide)==null?void 0:A.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(up,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(up,{title:"시설 · 편의",rows:v.filter(j=>!Vo(j)),children:n.jsx(Yy,{rows:v.filter(Vo)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32)))]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Zo=new Set(["가능","있음"]),$y="#16a34a",Gy="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Zo.has(u.value))-Number(Zo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Zo.has(o.value),f=u?$y:Gy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ds,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ds,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ds,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ds,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ds,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ds({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Ko=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Jo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=qp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ru(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[N,w]=O.useState(null),[j,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[Y,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,G=r.find(K=>K.unitId===j)??null,W=(G==null?void 0:G.maxCapacity)??8,le=V&&G?V.isWeekend?G.weekendPrice??G.weekdayPrice:G.weekdayPrice:void 0,xe=!!(y&&G&&(u.length===0||N));return O.useEffect(()=>{H(K=>Math.min(K,(G==null?void 0:G.maxCapacity)??8))},[G]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Qb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!Y?null:Y?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,G?Jo(G.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,G?Jo(G.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Ko.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Pb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(g0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(S0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${G?Jo(G.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(E0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=hl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=hl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:$s,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(ju,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Fo(){var v;const s=P(),r=ht(s),o=vu(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=jr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=hl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(s1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(Tn,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:yu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(Tn,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ru,{})})]})}function s1({images:s,name:r}){return n.jsx(On,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Sr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:yu(f)},f.url))]})})]})})}function mp(){const s=P(),r=vu(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Yb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($b,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:yu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ru,{})]})})}function r1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Mn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Dp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(hp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(On,{label:r,children:s.map(d=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Tn,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Bs=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Bs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Bs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Bs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Bs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=pp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??pp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Nu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Bs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:_0,places:o,within:y}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(On,{label:s,children:f.map(x=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Tn,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(da(x))&&` · ${mr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:x1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:T0,흐림:s0,비:t0,눈:a0};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,N,w,j,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=y=>{y.key==="Escape"&&m(),y.key==="ArrowLeft"&&x(-1),y.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(On,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Sr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(bp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(bp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,onClick:r}){const o=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function vp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(r0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===q0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address,d=r.category===Hl.LODGING?vu(s):null,[m,x]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Dp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:zn(u)}),n.jsx(o0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Tn,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ru,{})})]})}function Dn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",qs="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function pl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=jr(),g=O.useContext(ex),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?ju:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?qs:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Rn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(On,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const yp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function jp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return yp[o%yp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(pl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:qs,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":jp(m),"--w4-vinyl":qs},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(M0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":jp(g),"--w4-vinyl":qs,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(pl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(pl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:qs,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Rn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(pl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Rn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(pl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Rn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(pl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(Rn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(pl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Rn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ul=256,Us=318,En=168,Np=34,A1=16,Sp=4;function ix(s,r,o){const u=Ul*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>Sp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Us-Np*2&&f<=En-Np*2)return r}return Sp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(j=>ix(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Us/2,y=g-En/2,v=2**d,N=[];for(let j=Math.floor(p/Ul);j<=Math.floor((p+Us)/Ul);j+=1)for(let A=Math.floor(y/Ul);A<=Math.floor((y+En)/Ul);A+=1){if(A<0||A>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:j*Ul-p,top:A*Ul-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Ul,height:Ul,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Us,height:En,viewBox:`0 0 ${Us} ${En}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,A)=>{const L=m[A];return n.jsx("a",{href:O1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Wo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(pl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=su(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Rn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=su(p);return v.map((N,w)=>n.jsx(U1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(pl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=Q0(y.url),w=V0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:K0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{N&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:Z0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(j0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(ml,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(wp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(wp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function wp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:tx},{id:"people",label:"인물 열전",Component:lx},{id:"chronicle",label:"시간의 골목",Component:ax},{id:"reading",label:s,Component:nx},{id:"postcard",label:"오늘의 엽서",Component:sx}];function G1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Y1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Ep(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Y1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=v=>{v.key==="Escape"&&m()},y=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=y,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Ep(x,o):void 0;return n.jsxs(pl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Ep(p,o):void 0,N=Io(p,v),w=Po(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ma:dl,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:tx,daily:E1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:T1,itinerary:H1,video:B1,event:X1,story:G1},V1="/v1/site/review",Z1="/v1/site/reviews",zp=5,Tp=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[N,w]=O.useState(null),j=s.site.placeId,A=O.useCallback(async()=>{try{const Y=await fetch(`${Z1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/zp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/zp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Nu(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Tn,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Tp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Tp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Hs=4,mt=56,ru=190,eu="#1b1a15",F1="#efe7d3",Ap="#bf2f1b";function rx(s=iu){return s-mt-ru-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ru,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Hs);if(Y.length>Hs){let W=R[Hs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Hs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Ap,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Ap,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const G=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,G-20),d.lineTo(m-mt,G-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,G+6),p}const Cp="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,N]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Hs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function Y(){var V,G;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((G=navigator.canShare)!=null&&G.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(On,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Dn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],x=Mn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:zn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:zn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=Mn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ua(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var A;return j.enabled&&((A=j.name)==null?void 0:A.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,A)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:zn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function uj({children:s}){var N,w,j,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=kn(r),x=Ua(r),g=Fe(r)[0],p=pu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Dn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Mn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(f0,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Rp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Dn,{})]})}function hj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Xp(),d=pj(f),m=Fe(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:$s},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:$s},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Dn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===Hl.LODGING,o={intro:Hy,info:qy,rooms:Fo,menu:Fo,programs:Fo,booking:r?mp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:vp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Lt(s,"map")&&n.jsx(vp,{}),r&&!Tv(s,"booking")&&n.jsx(mp,{}),!Lt(s,"intro")&&n.jsx(op,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(O0,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Dn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),kp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Uu(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(jj,{})]})),Uu(!0)}const Mp=new URLSearchParams(window.location.search).get("placeId");kp?tu.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:kp})})):Mp?Nj(Mp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):wb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-LqO88vJq.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Vh as F,it as L,Hl as P,q0 as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DZHen0yX.js b/solution/site/scripts/mockup/vendor/retired/index-DZHen0yX.js new file mode 100644 index 0000000..5c2f499 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DZHen0yX.js @@ -0,0 +1,351 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const wb="modulepreload",Eb=function(s){return"/"+s},Oh={},zb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Eb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":wb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Tb(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function _b(){return Rh||(Rh=1,$o.exports=Tb()),$o.exports}var n=_b(),Go={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,L={};function H(E,$,K){this.props=E,this.context=$,this.refs=L,this.updater=K||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,$,K){this.props=E,this.context=$,this.refs=L,this.updater=K||j}var Q=R.prototype=new Y;Q.constructor=R,_(Q,H.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function J(){}var X={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,$,K){var F=K.ref;return{$$typeof:s,type:E,key:$,ref:F!==void 0?F:null,props:K}}function Z(E,$){return le(E.type,$,E.props)}function ne(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function ye(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return $[K]})}var Ge=/\/+/g;function Xe(E,$){return typeof E=="object"&&E!==null&&E.key!=null?ye(""+E.key):$.toString(36)}function re(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,$,K,F,ce){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),$,K,F,ce)}}if(oe)return ce=ce(E),oe=F===""?"."+Xe(E,0):F,q(ce)?(K="",oe!=null&&(K=oe.replace(Ge,"$&/")+"/"),O(ce,$,K,"",function(at){return at})):ce!=null&&(ne(ce)&&(ce=Z(ce,K+(ce.key==null||E&&E.key===ce.key?"":(""+ce.key).replace(Ge,"$&/")+"/")+oe)),$.push(ce)),1;oe=0;var Ee=F===""?".":F+":";if(q(E))for(var ze=0;ze>>1,je=O[he];if(0>>1;hef(K,ae))Ff(ce,K)?(O[he]=ce,O[F]=ae,he=F):(O[he]=K,O[$]=ae,he=$);else if(Ff(ce,ae))O[he]=ce,O[F]=ae,he=F;else break e}}return V}function f(O,V){var ae=O.sortIndex-V.sortIndex;return ae!==0?ae:O.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,_=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Q(O){for(var V=o(p);V!==null;){if(V.callback===null)u(p);else if(V.startTime<=O)u(p),V.sortIndex=V.expirationTime,r(g,V);else break;V=o(p)}}function q(O){if(_=!1,Q(O),!j)if(o(g)!==null)j=!0,J||(J=!0,ye());else{var V=o(p);V!==null&&re(q,V.startTime-O)}}var J=!1,X=-1,W=5,le=-1;function Z(){return L?!0:!(s.unstable_now()-leO&&Z());){var he=v.callback;if(typeof he=="function"){v.callback=null,N=v.priorityLevel;var je=he(v.expirationTime<=O);if(O=s.unstable_now(),typeof je=="function"){v.callback=je,Q(O),V=!0;break t}v===o(g)&&u(g),Q(O)}else u(g);v=o(g)}if(v!==null)V=!0;else{var E=o(p);E!==null&&re(q,E.startTime-O),V=!1}}break e}finally{v=null,N=ae,w=!1}V=void 0}}finally{V?ye():J=!1}}}var ye;if(typeof R=="function")ye=function(){R(ne)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Xe=Ge.port2;Ge.port1.onmessage=ne,ye=function(){Xe.postMessage(null)}}else ye=function(){H(ne,0)};function re(O,V){X=H(function(){O(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125he?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(_?(Y(X),X=-1):_=!0,re(q,ae-he))):(O.sortIndex=je,r(g,O),j||w||(j=!0,J||(J=!0,ye()))),O},s.unstable_shouldYield=Z,s.unstable_wrapCallback=function(O){var V=N;return function(){var ae=N;N=V;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Bh;function kb(){return Bh||(Bh=1,Xo.exports=Cb()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Mb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Mb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Db(){if(Gh)return Ds;Gh=1;var s=kb(),r=fu(),o=Ob();function u(e){var t="https://react.dev/errors/"+e;if(1je||(e.current=he[je],he[je]=null,je--)}function K(e,t){je++,he[je]=e.current,e.current=t}var F=E(null),ce=E(null),fe=E(null),oe=E(null);function Ee(e,t){switch(K(fe,t),K(ce,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(F),K(F,e)}function ze(){$(F),$(ce),$(fe)}function at(e){e.memoizedState!==null&&K(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(K(ce,e),K(F,l))}function Me(e){ce.current===e&&($(F),$(ce)),oe.current===e&&($(oe),As._currentValue=ae)}var te,_e;function Oe(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Oe(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return Oe("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Gn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Gn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function _r(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bx=/[\n"\\]/g;function $t(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Gl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Vx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Kx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Jx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Gl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ag=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(be=ee,ee=null):be=ee.sibling;var we=k(T,ee,A[me],B);if(we===null){ee===null&&(ee=be);break}e&&ee&&we.alternate===null&&t(T,ee),z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we,ee=be}if(me===A.length)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;meme?(be=ee,ee=null):be=ee.sibling;var ua=k(T,ee,we.value,B);if(ua===null){ee===null&&(ee=be);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),Se===null?se=ua:Se.sibling=ua,Se=ua,ee=be}if(we.done)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;!we.done;me++,we=A.next())we=G(T,we.value,B),we!==null&&(z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return ve&&Sl(T,me),se}for(ee=a(ee);!we.done;me++,we=A.next())we=D(ee,T,me,we.value,B),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?me:we.key),z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return e&&ee.forEach(function(Sb){return t(T,Sb)}),ve&&Sl(T,me),se}function Ue(T,z,A,B){if(typeof A=="object"&&A!==null&&A.type===_&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var se=A.key;z!==null;){if(z.key===se){if(se=A.type,se===_){if(z.tag===7){l(T,z.sibling),B=i(z,A.props.children),B.return=T,T=B;break e}}else if(z.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===W&&_a(se)===z.type){l(T,z.sibling),B=i(z,A.props),is(B,A),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}A.type===_?(B=Sa(A.props.children,T.mode,B,A.key),B.return=T,T=B):(B=hi(A.type,A.key,A.props,null,T.mode,B),is(B,A),B.return=T,T=B)}return h(T);case j:e:{for(se=A.key;z!==null;){if(z.key===se)if(z.tag===4&&z.stateNode.containerInfo===A.containerInfo&&z.stateNode.implementation===A.implementation){l(T,z.sibling),B=i(z,A.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(A,T.mode,B),B.return=T,T=B}return h(T);case W:return A=_a(A),Ue(T,z,A,B)}if(re(A))return I(T,z,A,B);if(ye(A)){if(se=ye(A),typeof se!="function")throw Error(u(150));return A=se.call(A),ie(T,z,A,B)}if(typeof A.then=="function")return Ue(T,z,ji(A),B);if(A.$$typeof===R)return Ue(T,z,gi(T,A),B);Ni(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,A),B.return=T,T=B):(l(T,z),B=ac(A,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,A,B){try{ss=0;var se=Ue(T,z,A,B);return un=null,se}catch(ee){if(ee===on||ee===vi)throw ee;var Se=Mt(29,ee,null,T.mode);return Se.lanes=B,Se.return=T,Se}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Te&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),kf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var G=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ge&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,ie=b;k=t;var Ue=l;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){G=I.call(Ue,G,k);break e}G=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,k=typeof I=="function"?I.call(Ue,G,k):I,k==null)break e;G=v({},G,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=G):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=G),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=G}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),C=O.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=dg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch(G){ds(e,t,{then:function(){},status:"rejected",reason:G},Ht())}finally{V.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function bg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=_d(e).queue;Td(e,i,t,ae,l===null?bg:function(){return Ad(e),l(a)})}function _d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=_d(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function vg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(_t(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function yg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),He===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&_t(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ms={readContext:ut,use:_i,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:_i,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=yg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(ve){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ge&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=He.identifierPrefix;if(ve){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return Be(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),Be(t),null);case 4:return ze(),e===null&&jo(t.stateNode.containerInfo),Be(t),null;case 10:return El(t.type),Be(t),null;case 19:if($(Ke),a=t.memoizedState,a===null)return Be(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return K(Ke,Ke.current&1|2),ve&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Gi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ve)return Be(t),null}else 2*pt()-a.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,K(Ke,i?l&1|2:l&1),ve&&Sl(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&$(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),Be(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Eg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Ke),null;case 4:return ze(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&$(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),ze();break;case 26:case 27:case 5:Me(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:$(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&$(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Ce(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Ce(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Ce(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Ce(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Ce(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Ce(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Ce(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Zg(a,e.type,l,t),a[Nt]=t}catch(i){Ce(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Ce(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function zg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,G=e,k=null;t:for(;;){for(var D;G!==l||i!==0&&G.nodeType!==3||(b=h+i),G!==c||a!==0&&G.nodeType!==3||(S=h+a),G.nodeType===3&&(h+=G.nodeValue.length),(D=G.firstChild)!==null;)k=G,G=D;for(;;){if(G===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=G.nextSibling)!==null)break;G=k,k=G.parentNode}G=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bUe&&(h=Ue,Ue=ie,ie=h);var T=jf(b,ie),z=jf(b,Ue);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var A=G.createRange();A.setStart(T.node,T.offset),D.removeAllRanges(),ie>Ue?(D.addRange(A),D.extend(z.node,z.offset)):(A.setEnd(z.node,z.offset),D.addRange(A))}}}}for(G=[],D=b;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Te&6)!==0)throw Error(u(331));var b=Te;if(Te|=4,Nm(c.current),vm(c,c.current,h,l),Te=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{V.p=i,O.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=Gc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Ce(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Dg.bind(null,e,t,l),t.then(e,e))}function Dg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ge&l)===l&&(Ve===4||Ve===3&&(ge&62914560)===ge&&300>pt()-$i?(Te&2)===0&&yn(e,0):io|=l,bn===ge&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Yn(e,t),fl(e))}function Rg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Ug(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Hg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Bg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ge,c=$a(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Lg(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Jg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,G=S.initiatorType;U&&th(G)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e){Ul.D(e),mh("dns-prefetch",e,null)}function sb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function ib(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(_s(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function rb(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_s(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function cb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ob(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(_s(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ub(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(_s(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||fb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function fb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function _s(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(_s(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function db(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function hb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(pb,e),ar=null,lr.call(e))}function pb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=Db(),Yo.exports}var au=Rb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ub=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Hb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Bb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Bb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ke=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(qb,{ref:d,iconNode:r,className:Mp(`lucide-${Ub(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=ke("arrow-up-right",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=ke("bed-double",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Qb=ke("calendar-check",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Zb=ke("car",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=ke("check",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=ke("chevron-down",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=ke("chevron-left",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=ke("chevron-right",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pb=ke("clock",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],t0=ke("cloud-rain",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],a0=ke("cloud-snow",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],s0=ke("cloud",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r0=ke("copy",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],o0=ke("external-link",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],f0=ke("instagram",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=ke("mail",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=ke("map-pin",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=ke("menu",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=ke("message-circle",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M5 12h14",key:"1ays0h"}]],g0=ke("minus",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=ke("navigation",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=ke("phone",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],j0=ke("play",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S0=ke("plus",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],E0=ke("rotate-ccw",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T0=ke("sun",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=ke("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=ke("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],M0=ke("youtube",k0),Rp=M.createContext(null);function O0({payload:s,children:r}){return n.jsx(Rp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function D0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function B0(){const s=P(),r=(s.songs??[]).filter(q=>q.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),_=r.length;M.useEffect(()=>{_>1&&u(Math.floor(Math.random()*_))},[_]);const L=M.useCallback(()=>{var W;const q=document.querySelector("header"),J=q==null?void 0:q.getBoundingClientRect(),X={top:`${J?J.bottom+6:66}px`};if(window.innerWidth<=640)X.left="8px",X.right="8px";else{X.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();X.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(X)},[]);if(M.useEffect(()=>{if(!m)return;L();const q=()=>L(),J=X=>{var le,Z;const W=X.target;(le=j.current)!=null&&le.contains(W)||(Z=w.current)!=null&&Z.contains(W)||x(!1)};return window.addEventListener("resize",q),window.addEventListener("scroll",q,{passive:!0}),document.addEventListener("click",J),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q),document.removeEventListener("click",J)}},[m,L]),M.useEffect(()=>()=>{var q;return(q=N.current)==null?void 0:q.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(q=o)=>{const J=N.current,X=r[q];!J||!X||(J.getAttribute("src")!==X.audioUrl&&(J.src=X.audioUrl),J.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var q;(q=N.current)==null||q.pause(),d(!1)},Q=q=>{const J=(q%r.length+r.length)%r.length;u(J),p({now:0,total:0}),Y(J)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(D0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(U0,{}):n.jsx(R0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(q=>!q),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:q=>p({now:q.currentTarget.currentTime,total:q.currentTarget.duration}),onDurationChange:q=>p(J=>({...J,total:q.currentTarget.duration})),onEnded:()=>Q(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(L0,{})})]}),n.jsx("ol",{children:r.map((q,J)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":J===o,"data-playing":J===o&&f?"1":"0",onClick:()=>Q(J),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:q.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:J===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},q.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},q0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$0=[Vh.VERIFIED,Vh.CORRECTED];function Up(s){return $0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},_j={PUBLISHED:3};function Cn(s){return s.filter(r=>Up(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of Cn(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function At(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Up(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:Cn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const X0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Q0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function V0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Z0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function K0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function J0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function F0(s,r){const o=X0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:J0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const W0=1260,I0=60,P0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(P0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??I0),g=u+m;if(g+x>W0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Lp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Bp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function qp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??qp(s)[0]??av(s)[0]}function bu(s){return Cn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=At(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Lp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=At(u.facts,"room_intro")??At(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=At(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=At(s.facts,"price_range");if(r)return r;const o=Number((d=At(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=At(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return At(s.facts,"price_range")?[]:At(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:At(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Y0(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=F0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Lp[s.place.category]}function qe(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(Cn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=qp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=At(r.facts,"standard_capacity"),u=At(r.facts,"max_capacity"),f=Bp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=At(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=_n(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(B0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var _;return(_=j.alt)==null?void 0:_.trim()}).sort((j,_)=>Number(_.isPrimary)-Number(j.isPrimary)).slice(0,Ov),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(_=>(_+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Mv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const _=N.current;if(N.current=null,_===null)return;const L=j.changedTouches[0].clientX-_;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,_)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:_===0?"high":"low",loading:_===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:_===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,_)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(_),"aria-label":`${_+1}번째 사진`,"aria-current":_===g,className:`h-1.5 rounded-full bg-current transition-all ${_===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Uv[s??""]??"default"}function Sr(){return Gp(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${_n(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Gs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Gs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Xp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:_u(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Au(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Bs(s,r){return Ye(s-r)}function sy(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Bs(Ye(s),Ye(r));return Ye(o/s)}function iy(s){return Math.round(s*100)/100}function Ys(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:_,width:L}=j;return u?_:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,_,L,H,Y){const{cross:R,direction:Q}=s,q=["INPUT","SELECT","TEXTAREA"],J={passive:!1},X=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),Z={mouse:300,touch:400},ne={mouse:500,touch:600},ye=j?43:25;let Ge=!1,Xe=0,re=0,O=!1,V=!1,ae=!1,he=!1;function je(te){if(!Y)return;function _e(tt){(wr(Y)||Y(te,tt))&&fe(tt)}const Oe=r;X.add(Oe,"dragstart",tt=>tt.preventDefault(),J).add(Oe,"touchmove",()=>{},J).add(Oe,"touchend",()=>{}).add(Oe,"touchstart",_e).add(Oe,"mousedown",_e).add(Oe,"touchcancel",Ee).add(Oe,"contextmenu",Ee).add(Oe,"click",ze,!0)}function E(){X.clear(),W.clear()}function $(){const te=he?o:r;W.add(te,"touchmove",oe,J).add(te,"touchend",Ee).add(te,"mousemove",oe,J).add(te,"mouseup",Ee)}function K(te){const _e=te.nodeName||"";return q.includes(_e)}function F(){return(j?ne:Z)[he?"mouse":"touch"]}function ce(te,_e){const Oe=v.add(Cu(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(_e&&te.button!==0)&&(K(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),$(),Xe=d.readPoint(te),re=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return Ee(te);const Oe=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(Oe,Xe),It=Bs(tt,re);if(!V&&!he&&(!te.cancelable||(V=jt>It,!V)))return Ee(te);const nl=d.pointerMove(te);jt>_&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Q(nl)),te.preventDefault()}function Ee(te){const Oe=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=ce(Q(tt),Oe),It=sy(tt,jt),nl=ye-10*It,Bt=H+It/50;V=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),he=!1,N.emit("pointerUp")}function ze(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:je,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,_=N/w;return w&&!j&&Ye(_)>.1?_:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Q=R.target===s,q=u.indexOf(R.target),J=Q?p:y[q],X=N(Q?s:u[q]);if(Ye(X-J)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(wr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const J=u.get()-s.get(),X=!g;let W=0;return X?(m=0,o.set(u),s.set(u),W=J):(o.set(s),m+=J/g,m*=p,y+=m,s.add(m),W=y-v),x=Cu(W),v=y,q}function w(){const J=u.get()-r.get();return Ye(J)<.001}function j(){return g}function _(){return x}function L(){return m}function H(){return R(f)}function Y(){return Q(d)}function R(J){return g=J,q}function Q(J){return p=J,q}const q={direction:_,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Q,useDuration:R};return q}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",_=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(_/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!_,Q=ku(o,_);return R?H:Q||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:_}=x;return m.slice(j,_)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(_=>al(_)[m]-_[0][d]).map(Ye)}function N(){return u.map(_=>o[d]-_[d]).map(_=>-Ye(_))}function w(){return x(p).map(_=>_[0]).map((_,L)=>_+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,_,L)=>{const H=!_,Y=ku(L,_);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((_,L)=>Ye(_)-Ye(L))[0]}function p(j){const _=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-_,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:_}}function y(j,_){const L=[j,j+o,j-o];if(!s)return j;if(!_)return g(L);const H=L.filter(Y=>Cu(Y)===_);return H.length?g(H):al(L)-o}function v(j,_){const L=r[j]-f.get(),H=y(L,_);return{index:j,distance:H}}function N(j,_){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!_||R)return{index:H,distance:j};const Q=r[H]-Y,q=j+y(Q,0);return{index:H,distance:q}}return{byDistance:N,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(_){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(_));Au(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((_,L)=>{d.add(_,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=iy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Ys(f),v=Ys(f).reverse(),N=H().concat(Y());function w(X,W){return X.reduce((le,Z)=>le-f[Z],W)}function j(X,W){return X.reduce((le,Z)=>w(le,W)>0?le.concat([Z]):le,[])}function _(X){return d.map((W,le)=>({start:W-u[le]+.5+X,end:W+r-.5+X}))}function L(X,W,le){const Z=_(W);return X.map(ne=>{const ye=le?0:-o,Ge=le?o:0,Xe=le?"end":"start",re=Z[ne][Xe];return{index:ne,loopPoint:re,slideLocation:Us(-1),translate:Kp(s,g[ne]),target:()=>x.get()>re?ye:Ge}})}function H(){const X=m[0],W=j(v,X);return L(W,o,!1)}function Y(){const X=r-m[0]-1,W=j(y,X);return L(W,-o,!0)}function R(){return N.every(({index:X})=>{const W=y.filter(le=>le!==X);return w(W,r)<=.1})}function Q(){N.forEach(X=>{const{target:W,translate:le,slideLocation:Z}=X,ne=W();ne!==Z.get()&&(le.to(ne),Z.set(ne))})}function q(){N.forEach(X=>X.translate.clear())}return{canLoop:R,clear:q,loop:Q,loopPoints:N}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(_=>{const L=r.indexOf(_.target);f[L]=_}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((_,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&_.push(H),_},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const _=v(j);return j&&(d=_),j||(m=_),_}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=_(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function _(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Q)=>{const q=!R,J=ku(Q,R);return q?N[R]+y:J?N[R]+v:Q[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=Au(o);function w(H,Y){return Ys(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Ys(H).reduce((Y,R,Q)=>{const q=al(Y)||0,J=q===0,X=R===Zs(H),W=f[p]-d[q][p],le=f[p]-d[R][y],Z=!u&&J?v(m):0,ne=!u&&X?v(x):0,ye=Ye(le-ne-(W+Z));return Q&&ye>r+g&&Y.push(R),X&&Y.push(H.length),Y},[]).map((Y,R,Q)=>{const q=Math.max(Q[R-1]||0);return H.slice(q,Y)}):[]}function _(H){return N?w(H,o):j(H)}return{groupSlides:_}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:_,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Q,watchDrag:q,watchFocus:J}=d,X=2,W=dy(),le=W.measure(r),Z=o.map(W.measure),ne=oy(g,p),ye=ne.measureSize(le),Ge=my(ye),Xe=ry(x,ye),re=!v&&!!Y,O=v||!!Y,{slideSizes:V,slideSizesWithGaps:ae,startGap:he,endGap:je}=Ay(ne,le,Z,o,O,f),E=Cy(ne,ye,L,v,le,Z,he,je,X),{snaps:$,snapsAligned:K}=jy(ne,Xe,le,Z,E),F=-al($)+al(ae),{snapsContained:ce,scrollContainLimit:fe}=gy(ye,F,K,Y,X),oe=re?ce:K,{limit:Ee}=by(F,oe,v),ze=Zp(Zs(oe),y,v),at=ze.clone(),Me=Ys(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Gn,options:{loop:sl}})=>{sl||Gn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Gn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Gn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},Oe=cy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[ze.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,N,tt),Hn=Sy(v,oe,F,Ee,Pt),Ln=wy(Oe,ze,at,gl,Hn,Pt,m),pt=yy(Ee),Js=Qs(),Fs=_y(r,o,m,_),{slideRegistry:Bn}=Ny(re,Y,oe,fe,E,Me),Ba=Ey(s,o,Bn,Ln,gl,Js,m,J),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:Z,animation:Oe,axis:ne,dragHandler:uy(ne,s,u,f,Pt,fy(ne,f),It,Oe,Ln,gl,Hn,ze,m,Ge,w,j,H,tt,q),eventStore:Js,percentOfView:Ge,index:ze,indexPrevious:at,limit:Ee,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ne,R,W),scrollBody:gl,scrollBounds:xy(Ee,Bt,Pt,gl,Ge),scrollLooper:vy(F,Ee,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ne,ye,F,V,ae,$,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Q),slidesInView:Fs,slideIndexes:Me,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Kp(ne,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Qs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,_=ne;let L=!1,H,Y=p(Oy,br.globalOptions),R=p(Y),Q=[],q,J,X;function W(){const{container:Me,slides:te}=R;J=(su(Me)?s.querySelector(Me):Me)||s.children[0];const Oe=su(te)?J.querySelectorAll(te):te;X=[].slice.call(Oe||J.children)}function le(Me){const te=ky(s,J,X,u,f,Me,g);if(Me.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Me,{loop:!1});return le(_e)}return te}function Z(Me,te){L||(Y=p(Y,Me),R=y(Y),Q=te||Q,W(),H=le(R),v([Y,...Q.map(({options:_e})=>_e)]).forEach(_e=>x.add(_e,"change",ne)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),J.offsetParent&&X.length&&H.dragHandler.init(at),q=m.init(at,Q)))}function ne(Me,te){const _e=E();ye(),Z(p({startIndex:_e},Me),te),g.emit("reInit")}function ye(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function Ge(){L||(L=!0,x.clear(),ye(),g.emit("destroy"),g.clear())}function Xe(Me,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Me,_e||0))}function re(Me){const te=H.index.add(1).get();Xe(te,Me,-1)}function O(Me){const te=H.index.add(-1).get();Xe(te,Me,1)}function V(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function he(){return H.scrollSnapList}function je(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function $(){return H.indexPrevious.get()}function K(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function ce(){return q}function fe(){return H}function oe(){return s}function Ee(){return J}function ze(){return X}const at={canScrollNext:V,canScrollPrev:ae,containerNode:Ee,internalEngine:fe,destroy:Ge,off:w,on:N,emit:j,plugins:ce,previousScrollSnap:$,reInit:_,rootNode:oe,scrollNext:re,scrollPrev:O,scrollProgress:je,scrollSnapList:he,scrollTo:Xe,selectedScrollSnap:E,slideNodes:ze,slidesInView:K,slidesNotInView:F};return Z(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{_u(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(ay()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([_])=>{m=_.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=_=>{const L=_.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Wp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,_]=M.useState([]),[L,H]=M.useState(0),[Y,R]=M.useState(!1),[Q,q]=M.useState(!1),J=M.useRef(null),X=M.useId();M.useEffect(()=>{var V;if(!w)return;const re=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),q(w.canScrollNext())},O=()=>{_(w.scrollSnapList()),re()};return O(),w.on("select",re),w.on("reInit",O),(V=J.current)==null||V.setAttribute("data-slider","on"),()=>{w.off("select",re),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const re=J.current,O=()=>re==null?void 0:re.setAttribute("data-dragging","true"),V=()=>re==null?void 0:re.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",V),()=>{w.off("pointerDown",O),w.off("pointerUp",V)}},[w]),Fp({box:J,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(re=>w==null?void 0:w.scrollTo(re),[w]),le=M.useRef(g);le.current=g;const Z=M.useRef(p);Z.current=p,M.useEffect(()=>{var O;if(!w)return;const re=()=>{var V;return(V=le.current)==null?void 0:V.call(le,w.selectedScrollSnap())};return re(),w.on("select",re),w.on("reInit",re),(O=Z.current)==null||O.call(Z,{scrollTo:V=>w.scrollTo(V)}),()=>{w.off("select",re),w.off("reInit",re)}},[w]);const ne=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),ye=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),Ge=j.length>1,Xe=f&&Ge&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&Ge&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:re=>{J.current=re,N(re)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:re=>{re.key==="ArrowLeft"&&(re.preventDefault(),ne()),re.key==="ArrowRight"&&(re.preventDefault(),ye())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:X,children:n.jsx(Wp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&Ge&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]})]}),Ge&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((re,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":X,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Wp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru(s){M.useEffect(()=>{if(!s)return;const r=window.scrollY,o=document.body,u=o.style.position,f=o.style.top,d=o.style.width,m=o.style.overflow;return o.style.position="fixed",o.style.top=`-${r}px`,o.style.width="100%",o.style.overflow="hidden",()=>{o.style.position=u,o.style.top=f,o.style.width=d,o.style.overflow=m;const x=document.documentElement,g=x.style.scrollBehavior;x.style.scrollBehavior="auto",window.scrollTo(0,r),x.style.scrollBehavior=g}},[s])}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,Ru(s),M.useEffect(()=>{if(!s)return;const x=g=>{g.key==="Escape"&&m.current()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function ex(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?ex(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx(qy,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function qy({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=ex(s.publishedAt),d=By(o),m=Ly[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const $y=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&$y.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Yy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Xy(){var N,w;const s=P(),r=bu(s),o=Cn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var _,L,H;return j.confirmed&&[(_=j.stayGuide)==null?void 0:_.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var _;return((_=j.stayGuide)==null?void 0:_.fields)??[]}),m=Yy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Gy.has(j.label)||d.some(_=>_.key===j.key&&_.group==="rules"),p=f.map(j=>{var _;return((_=j.stayGuide)==null?void 0:_.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Ky,{text:j},j.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=fp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=At(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Bp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var le;const s=P(),r=M.useMemo(()=>Py(s),[s]),o=M.useMemo(()=>{var Z;return((Z=Cn(s.facts).find(ne=>ne.key==="check_in_time"))==null?void 0:Z.value)??void 0},[s]),u=M.useMemo(()=>Iy(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Wy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,_]=M.useState(((le=r[0])==null?void 0:le.unitId)??null),[L,H]=M.useState(2),[Y,R]=M.useState(!1),Q=p.find(Z=>Z!==null&&Z.iso===y)??null,q=r.find(Z=>Z.unitId===j)??null,J=(q==null?void 0:q.maxCapacity)??8,X=Q&&q?Q.isWeekend?q.weekendPrice??q.weekdayPrice:q.weekdayPrice:void 0,W=!!(y&&q&&(u.length===0||N));return M.useEffect(()=>{H(Z=>Math.min(Z,(q==null?void 0:q.maxCapacity)??8))},[q]),r.length===0?null:n.jsx("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):Y?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,N?`도착 ${N}`:null,q?Wo(q.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,N?`도착 ${N}`:null,q?Wo(q.name):null,`${L}명`].filter(Z=>!!Z).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(Z=>Math.max(0,Z-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(Z=>Math.min(up,Z+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((Z,ne)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:ne===0||ne===6?.75:.45},children:Z},Z))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((Z,ne)=>Z===null?n.jsx("span",{"aria-hidden":!0},`pad-${ne}`):n.jsx("button",{type:"button",disabled:Z.past,onClick:()=>v(Z.iso),"aria-pressed":Z.iso===y,"aria-label":`${g.getMonth()+1}월 ${Z.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:Z.iso===y?"var(--color-brand)":"transparent",backgroundColor:Z.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:Z.iso===y?"#fff":void 0,opacity:Z.past?.25:1,fontWeight:Z.iso===y?700:400},children:Z.day},Z.iso))}),(Q==null?void 0:Q.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Pb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(Z=>{const ne=Z===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(Z),"aria-pressed":ne,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:ne?"var(--color-brand)":"var(--color-surface-alt)",color:ne?"#fff":void 0},children:Z})},Z)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(Z=>{const ne=Z.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>_(Z.unitId),"aria-pressed":ne,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:Z.name}),Z.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",Z.maxCapacity,"명"]})]})},Z.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(Z=>Math.max(1,Z-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(g0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(Z=>Math.min(J,Z+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(S0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:Q?`${g.getMonth()+1}월 ${Q.day}일 · ${q?Wo(q.name):""} · ${L}명`:"날짜를 골라 주세요"}),X!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[X.toLocaleString("ko-KR"),"원"]})]}),X!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!W,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(E0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:qe(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:qe(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:qe(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Gs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:qe(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(a1,{});if(x==="oasi")return n.jsx(n1,{});if(x==="studio")return n.jsx(s1,{});if(x==="pastel")return n.jsx(i1,{});if(x==="editorial")return n.jsx(r1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(t1,{});if(g==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:qe(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(o1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:qe(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Qb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:qe(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:qe(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:qe(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:qe(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=hp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Xp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}const y1={0:"맑음",1:"대체로 맑음",2:"구름 조금",3:"흐림",45:"안개",48:"착빙성 안개",51:"가벼운 이슬비",53:"보통 이슬비",55:"강한 이슬비",56:"가벼운 착빙성 이슬비",57:"강한 착빙성 이슬비",61:"약한 비",63:"보통 비",65:"강한 비",66:"약한 착빙성 비",67:"강한 착빙성 비",71:"약한 눈",73:"보통 눈",75:"강한 눈",77:"싸라기눈",80:"약한 소나기",81:"보통 소나기",82:"강한 소나기",85:"약한 소나기눈",86:"강한 소나기눈",95:"뇌우",96:"약한 우박 뇌우",99:"강한 우박 뇌우"};function j1(s){return y1[s]??"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:j1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,x=o!=null&&o.length?xp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:T0,흐림:s0,비:t0,눈:a0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,N,w,j,_;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=S1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(_=f==null?void 0:f.tempNotes)==null?void 0:_[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-center gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return Ru(f!==null),M.useEffect(()=>{if(f===null)return;const g=p=>{p.key==="Escape"&&m(),p.key==="ArrowLeft"&&x(-1),p.key==="ArrowRight"&&x(1)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(gp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(r0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function _1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===q0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:_n(u)}),n.jsx(o0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const lx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Ne="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(lx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function ax(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||qe(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(M0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||qe(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(k1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function k1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Ne,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Ne}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Ne},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function nx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||qe(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function sx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||qe(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Ne,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Ne}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Ne}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ix(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||qe(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Ne},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function rx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||qe(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Ne}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Ne},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Ne},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||qe(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,jp=34,O1=16,Np=4;function cx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>Np;r-=1){const o=s.map(d=>cx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-jp*2&&f<=Tn-jp*2)return r}return Np}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!U1(f,x)?f:void 0}),f=x)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function L1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(j=>cx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let _=Math.floor(y/Hl);_<=Math.floor((y+Tn)/Hl);_+=1){if(_<0||_>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${_}`,url:`https://tile.openstreetmap.org/${d}/${L}/${_}.png`,left:j*Hl-p,top:_*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Ne,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,_)=>{const L=m[_];return n.jsx("a",{href:L1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Ne,...x?{borderRight:`2px dashed ${Ne}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Ne},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Ne},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",q1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(B1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Ne},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Ne}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Ne},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function G1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||qe(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx($1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||qe(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=Q0(y.url),w=V0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Ne,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:K0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:_=>{N&&(_.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:Z0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(j0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:ax,dark:!1},{id:"people",label:"인물 열전",Component:nx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:sx,dark:!1},{id:"reading",label:s,Component:ix,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:rx,dark:!1}];function Z1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=qe(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Ne},children:g.label},g.id)})})]})}),n.jsx(lx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(Ru(f!==null),M.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?wp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||qe(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Ne,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Ne}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Ne},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Ne,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Ne},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:ax,daily:C1,people:nx,chronicle:sx,reading:ix,postcard:rx,quiz:M1,itinerary:G1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",Ep=5,zp=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,_=M.useCallback(async()=>{try{const Y=await fetch(`${I1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),_()},[_]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const q=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(q!=null&&q.success),message:String((q==null?void 0:q.message)??"")}),q!=null&&q.success&&(x(""),d(0),v(!1),await _())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Xp(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",Tp="#bf2f1b";function ox(s=cu){return s-mt-ou-mt-24}function ux(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const _=mt+v+36,L=m-mt-ou,H=ox(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,_),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=ux(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Ls);if(Y.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,_+50+le*60));const Q=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Q-44,_,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Q,_+46),d.fillText("10원",Q,_+78),d.save(),d.translate(Q,_+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${x}`;const q=lj(d,u,100).slice(0,2),J=8-(q.length-1)*26/2;q.forEach((W,le)=>d.fillText(W,0,J+le*26)),d.restore();const X=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,X-20),d.lineTo(m-mt,X-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,X+6),p}const Ap="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Q=r[u];if(!R||!(Q!=null&&Q.url))return;const q=window.setTimeout(()=>{_p(R,{photoUrl:Q.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(q)},[u,d,w,j,r]),M.useEffect(()=>{var q;const R=o.current,Q=r[u];!R||!(Q!=null&&Q.url)||!((q=document.fonts)!=null&&q.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Q.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function _(R){var q;const Q=(q=o.current)==null?void 0:q.getContext("2d");return Q?(Q.font="600 46px serif",ux(Q,`“${R}”`,ox()).length<=Ls):!0}function L(){return new Promise(R=>{const Q=o.current;if(!Q)return R(null);Q.toBlob(q=>R(q),"image/png",.95)})}function H(R){const Q=URL.createObjectURL(R),q=document.createElement("a");q.href=Q,q.download=Ap,q.click(),URL.revokeObjectURL(Q)}async function Y(){var J,X;const R=await L();if(!R)return;const Q=((J=document.querySelector('meta[property="og:url"]'))==null?void 0:J.content)??`${location.origin}${location.pathname}`,q=new File([R],Ap,{type:"image/png"});if((X=navigator.canShare)!=null&&X.call(navigator,{files:[q]})){await navigator.share({files:[q],title:`${w} 엽서`,text:Q}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Q}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Q)=>n.jsx("button",{type:"button",onClick:()=>f(Q),role:"radio","aria-checked":Q===u,"aria-label":`사진 ${Q+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Q===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{_(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function fx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:qe(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=fx(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=fx(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:_n(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:_n(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var _;return j.enabled&&((_=j.name)==null?void 0:_.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,_)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":_===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${_===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,_)=>n.jsxs("li",{className:"flex items-center gap-4",children:[_>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:_n(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var N,w,j,_;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((_=o.legal)==null?void 0:_.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(f0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Gs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?dp:u1,space:f1,inquiry:d1,exhibition:m1,photos:T1,festival:x1,local:b1,weather:z1,map:bp,faq:_1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(bp,{}),r&&!Tv(s,"booking")&&n.jsx(dp,{}),!Lt(s,"intro")&&n.jsx(cp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(O0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Uu(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Uu(!0)}const kp=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Cp})})):kp?Tj(kp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):zb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-BAFLpg_H.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,q0 as S,_j as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DixNzlxb.js b/solution/site/scripts/mockup/vendor/retired/index-DixNzlxb.js new file mode 100644 index 0000000..8aa04c1 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DixNzlxb.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const j0="modulepreload",N0=function(s){return"/"+s},kh={},S0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=N0(p),p in kh)return;kh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const j=document.createElement("link");if(j.rel=v?"stylesheet":j0,v||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),v)return new Promise((z,N)=>{j.addEventListener("load",z),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Lo={exports:{}},Cs={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mh;function w0(){if(Mh)return Cs;Mh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Cs.Fragment=r,Cs.jsx=o,Cs.jsxs=o,Cs}var Oh;function E0(){return Oh||(Oh=1,Lo.exports=w0()),Lo.exports}var n=E0(),Bo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function z0(){if(Dh)return ue;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),j=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=j&&w[j]||w["@@iterator"],typeof w=="function"?w:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(w,q,J){this.props=w,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},H.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(w,q,J){this.props=w,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,j=3,z=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(g)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,j=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,j=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),N||z||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Yo)),Yo}var Hh;function A0(){return Hh||(Hh=1,$o.exports=T0()),$o.exports}var Go={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lh;function _0(){if(Lh)return xt;Lh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=_0(),Go.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function k0(){if(qh)return ks;qh=1;var s=A0(),r=ou(),o=C0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=eh(t),e=th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=th(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),zs._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Dn=s.unstable_shouldYield,Rn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Un=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Hn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Bn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Bn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,Sr=Math.log,wr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(Sr(e)/wr|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Er(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ox(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var px=/[\n"\\]/g;function $t(e){return e.replace(px,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Mr(e,h,qt(t)):l!=null?Mr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Zu(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Cr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Cr(e)}function Mr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hr=!1;if(jl)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Hr=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Hr=!1}var $l=null,Lr=null,li=null;function ef(){if(li)return li;var e,t=Lr,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Zn),rf=" ",cf=!1;function of(e,t){switch(e){case"keyup":return Gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Qx(e,t){switch(e){case"compositionend":return uf(t);case"keypress":return t.which!==32?null:(cf=!0,rf);case"textInput":return e=t.data,e===rf&&cf?null:e;default:return null}}function Vx(e,t){if(Ja)return e==="compositionend"||!Gr&&of(e,t)?(e=ef(),li=Lr=$l=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=bf(l)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eg=jl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Zr=null,Wn=null,Kr=!1;function Nf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kr||Fa==null||Fa!==ei(a)||(a=Fa,"selectionStart"in a&&Vr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Wn&&Fn(Wn,a)||(Wn=a,a=Ji(Zr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=O(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(T,oa)}),je&&Sl(T,me),ne}function se(T,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(T,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(T,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=O(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(y0){return t(T,y0)}),je&&Sl(T,me),ne}function He(T,E,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===A){if(E.tag===7){l(T,E.sibling),B=i(E,_.props.children),B.return=T,T=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===E.type){l(T,E.sibling),B=i(E,_.props),as(B,_),B.return=T,T=B;break e}l(T,E);break}else t(T,E);E=E.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=di(_.type,_.key,_.props,null,T.mode,B),as(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(T,E.sibling),B=i(E,_.children||[]),B.return=T,T=B;break e}else{l(T,E);break}else t(T,E);E=E.sibling}B=tc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,E,_,B)}if(ie(_))return I(T,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,E,_,B)}if(typeof _.then=="function")return He(T,E,vi(_),B);if(_.$$typeof===R)return He(T,E,pi(T,_),B);yi(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(T,E.sibling),B=i(E,_),B.return=T,T=B):(l(T,E),B=ec(_,T.mode,B),B.return=T,T=B),h(T)):l(T,E)}return function(T,E,_,B){try{ls=0;var ne=He(T,E,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===gi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Qf(!0),Vf=Qf(!1),Vl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),_f(e,null,l),t}return ui(e,a,t,l),fi(e)}function ns(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}function pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function ss(){if(xc){var e=sn;if(e!==null)throw e}}function is(e,t,l,a){xc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,O=k!==b.lane;if(O?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(xc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[k]:O.push(k))}else O={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=O,S=$):U=U.next=O,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;O=b,b=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Kf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Rc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=og(S,a);os(e,t,U,Ht(e))}else os(e,t,a,Ht(e))}catch($){os(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function pg(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=zd(e).queue;Ed(e,i,t,ae,l===null?pg:function(){return Td(e),l(a)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Td(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Ht())}function Dc(){return ut(zs)}function Ad(){return Fe().memoizedState}function _d(){return Fe().memoizedState}function xg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),ns(a,t,l)),t={cache:oc()},e.payload=t;return}t=t.return}}function gg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?kd(t,l):(l=Ir(e,t,l,a),l!==null&&(_t(l,e,a),Md(l,t,a)))}function Cd(e,t,l){var a=Ht();os(e,t,l,a)}function os(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))kd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),Le===null&&oi(),!1}catch{}finally{}if(l=Ir(e,t,i,a),l!==null)return _t(l,e,a),Md(l,t,a),!0}return!1}function Rc(e,t,l,a){if(a={lane:2,revertLane:ho(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Ir(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function kd(e,t){un=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Md(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}var us={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};us.useEffectEvent=Qe;var Od={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:xd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:kc,useDeferredValue:function(e,t){var l=yt();return Mc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=Ed.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ed(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,xd(ld.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},td.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&bo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ds(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),bc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ng(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),bc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function am(e,t){switch(ac(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),bc(),e!==null&&q(za);break;case 24:El(We)}}function ms(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function nm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Kf(t,l)}catch(a){Me(e,e.return,a)}}}function sm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function hs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function im(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Fc(e,t,l){try{var a=e.stateNode;Xg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function cm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Pc=!1,om=typeof WeakSet=="function"?WeakSet:Set,st=null;function Sg(e,t){if(e=e.containerInfo,jo=ar,e=jf(e),Vr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var O;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(O=$.firstChild)!==null;)k=$,$=O;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(O=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=O}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(No={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=ph("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=vf(b,se),E=vf(b,He);if(T&&E&&(O.rangeCount!==1||O.anchorNode!==T.node||O.anchorOffset!==T.offset||O.focusNode!==E.node||O.focusOffset!==E.offset)){var _=$.createRange();_.setStart(T.node,T.offset),O.removeAllRanges(),se>He?(O.addRange(_),O.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),O.addRange(_))}}}}for($=[],O=b;O=O.parentNode;)O.nodeType===1&&$.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!jo,No=jo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Um(){if(lt===2){lt=0;var e=ta,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{um(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Hm(){if(lt===4||lt===3){lt=0,Rn();var e=ta,t=gn,l=Rl,a=Sm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=ta=null,Lm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Tr(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=io,io=null;var c=ta,h=Rl;if(lt=0,gn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,ym(c.current),gm(c,c.current,h,l),Ae=b,ys(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,Lm(e,t)}}function qm(e,t,l){t=Gt(l,t),t=Bc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(qn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)qm(e,e,l);else for(;t!==null;){if(t.tag===3){qm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=$d(2),a=Kl(t,l,2),a!==null&&(Yd(l,a,t,e),qn(a,2),fl(a));break}}t=t.return}}function uo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new zg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(lo=!0,i.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&bn(e,0):ao|=l,xn===ve&&(xn=0)),fl(e)}function $m(e,t){t===0&&(t=Ws()),e=ja(e,t),e!==null&&(qn(e,t),fl(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$m(e,l)}function Og(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),$m(e,l)}function Dg(e,t){return Pt(e,t)}var Vi=null,yn=null,fo=!1,Zi=!1,mo=!1,aa=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Vi=yn=e:yn=yn.next=e),Zi=!0,fo||(fo=!0,Ug())}function ys(e,t){if(!mo&&Zi){mo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Qm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Qm(a,c));a=a.next}while(l);mo=!1}}function Rg(){Ym()}function Ym(){Zi=fo=!1;var e=0;aa!==0&&Vg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Gm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||ys(e),aa!==0&&(aa=0)}function Gm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&Pm($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function fh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),uh.has(i)||(uh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function t0(e){Ul.D(e),fh("dns-prefetch",e,null)}function l0(e,t){Ul.C(e,t),fh("preconnect",e,t)}function a0(e,t,l){Ul.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ws(c))||t==="script"&&a.querySelector(Es(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function n0(e,t){Ul.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Es(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function s0(e,t,l){Ul.S(e,t,l);var a=jn;if(a&&e){var i=Ga(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(ws(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&_o(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function i0(e,t){Ul.X(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function r0(e,t){Ul.M(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function dh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ga(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ga(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||c0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ga(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function mh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function c0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Es(e){return"script[async]"+e}function hh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(ws(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=mh(l),(i=Jt.get(i))&&_o(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Es(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),Co(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function o0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(ws(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=mh(a),(i=Jt.get(i))&&_o(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ko=0;function f0(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0ko?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(d0,e),tr=null,er.call(e))}function d0(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),qo.exports=k0(),qo.exports}var tu=M0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Yh=s=>{const r=D0(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),R0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var U0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H0=D.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>D.createElement("svg",{ref:g,...U0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!R0(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>D.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=D.forwardRef(({className:u,...f},d)=>D.createElement(H0,{ref:d,iconNode:r,className:kp(`lucide-${O0(Yh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Yh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",L0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],q0=_e("bed-double",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Y0=_e("calendar-check",$0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],X0=_e("calendar-days",G0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],V0=_e("car",Q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zn=_e("chevron-left",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],I0=_e("clock",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],eb=_e("cloud-rain",P0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],lb=_e("cloud-snow",tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ab=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],nb=_e("cloud",ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ib=_e("copy",sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],cb=_e("external-link",rb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ob=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],ub=_e("instagram",ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M5 12h14",key:"1ays0h"}]],xb=_e("minus",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Xo=_e("navigation",gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],yb=_e("play",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nb=_e("plus",jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],wb=_e("rotate-ccw",Sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],zb=_e("sun",Eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tb=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Ab=_e("utensils",Tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _b=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",_b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],kb=_e("youtube",Cb),Dp=D.createContext(null);function Mb({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=D.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Ob(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Db(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Ub(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Hb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Gh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Lb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=D.useState(0),[f,d]=D.useState(!1),[m,x]=D.useState(!1),[g,p]=D.useState({now:0,total:0}),[v,y]=D.useState({}),j=D.useRef(null),z=D.useRef(null),N=D.useRef(null),A=r.length;D.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=D.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(D.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),D.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Ob,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Rb,{}):n.jsx(Db,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(Ub,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(Hb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Gh(g.now)}${g.total?` / ${Gh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},Bb={OWNER:1,CRAWL:3,TEMPLATE:5},Xh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},qb=[Xh.VERIFIED,Xh.CORRECTED];function Rp(s){return qb.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function Tn(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?$b(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function $b(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Yb(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Gb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Xb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Qb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Vb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Zb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function Kb(s,r){var p,v;const o=y=>{const j=s.slice(0,Math.max(0,y)),z=j.split(` +`).length,N=y-j.lastIndexOf(` +`);return`${z}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Jb(s,r){const o=Gb[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:Kb(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const j=y;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const Fb=1260,Wb=60,Ib="10:00",Qh=["봄","여름","가을","겨울"];function Vh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function Pb(s){const r=Vh(s.startTime??"")??Vh(Ib)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??Wb),g=u+m;if(g+x>Fb){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function ev(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Qh[o];return r%3===0&&s.getDate()<=15?[Qh[(o+3)%4],u]:[u]}function Zh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Kh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Zh(s),[m,x,g]=Zh(r),p=(y,j)=>Math.round(y+(j-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function tv(s){return{surface:Kh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Kh(s.bg,s.text,.2)}}const Hp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function lv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Jh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function av(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Jh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Jh.includes(f.channel)&&!av(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??lv(s)[0]}function xu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const nv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function sv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:sv(u.facts.filter(m=>!nv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:iv(u),prices:cv(u),href:`/${r.path}/${u.slug}`}})}function iv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const rv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function cv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?rv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function ov(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function uv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function fv(s){return Yb(s.faqs)}function dv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function mv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Jb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function hv(s,r){return An(s,[r])[0]}const pv=["reservation_required","reservation_channel"];function xv(s){return An(s,pv)}const gv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function bv(s){return An(s,gv)}const vv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function yv(s){return An(s,vv)}const jv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return An(s,jv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Bp,wv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Ev(s){return hu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function $p(s){if(s.place.category!==da.LODGING)return null;const r={offers:Ev(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,wv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function zv(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Sv(s,Nv)}function gt(s,r){const o=Bs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function vu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function Tv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Lb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=D.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(D.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(j=>(j+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return Cv(s).join(" ")}function Cv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const kv=6e3,Mv=5;function Ov(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Mv),[g,p]=D.useState(0),[v,y]=D.useState(!1),j=D.useRef(null),z=D.useCallback(N=>p(A=>(A+N+x.length)%x.length),[x.length]);return D.useEffect(()=>{if(v||x.length<2)return;const N=setInterval(()=>z(1),kv);return()=>clearInterval(N)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&z(L<0?1:-1)},children:[x.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Fh,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Fh,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Fh({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=_n(s),d=Ke(s),m=hv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Rv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Rv[s??""]??"default"}function vr(){return Yp(P().theme.templateId)}const mr=5,lu=1.8,Uv=3;function Hv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Lv(s,r){return((r-s)%r*mr+lu).toFixed(1)}function Bv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Uv),g=f?{href:f.url,label:`${Bs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Hv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function $v(){const s=P(),r=bu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const qs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Gv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Xv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Wh(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of dv(s)){const m=Gv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Wh(u.length+1),label:x||Xv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Wh(u.length+1),label:"오시는 길",anchor:"location"}),u}function yu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=Ua(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:qs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:v})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Vv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx(Bv,{});if(r==="oasi")return n.jsx(qv,{});if(r==="studio")return n.jsx($v,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Qv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Ov,{});if(o==="hero.split")return n.jsx(Dv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function ju(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Qs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Zv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ih(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Kv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Nu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Jv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Nu(s))},${r},${o}`}function Fv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Nu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Nu(s))}/-/transit`}function Wv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Iv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Su({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const Pv={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?Su:p==="oasi"?wu:p==="studio"?Eu:p==="pastel"?zu:p==="editorial"?yu:ey;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...Pv[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ey({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ty(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ph(s){return ty(s)||Array.isArray(s)}function ly(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!Ph(x)||!Ph(g)?x===g:Tu(x,g)})}function ep(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ay(s,r){if(s.length!==r.length)return!1;const o=ep(s),u=ep(r);return o.every((f,d)=>{const m=u[d];return Tu(f,m)})}function Au(s){return typeof s=="number"}function au(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function tp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Us(s,r){return Ge(s-r)}function ny(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Us(Ge(s),Ge(r));return Ge(o/s)}function sy(s){return Math.round(s*100)/100}function $s(s){return Ys(s).map(Number)}function al(s){return s[Vs(s)]}function Vs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Vs(s)}function lp(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=tp(d)&&tp(m);o[f]=x?Qp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function iy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Gs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function ry(s,r,o,u){const f=Gs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function v(){z(),f.clear()}function y(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function j(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function N(){m=null,x=0}return{init:p,destroy:v,start:j,stop:z,update:o,render:u}}function cy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(N){const{height:A,width:L}=N;return u?A:L}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function x(){return d}function g(j){return d=m(j),y}function p(j){return v().set(x()+j)}function v(){return Vp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function oy(s,r,o,u,f,d,m,x,g,p,v,y,j,z,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Gs(),W=Gs(),le=Da(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(_u(te)*-1),tt=v.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),Nt=Us(De,Xe),It=Us(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=ny(tt,Nt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function uy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(nu(y,r)?y:y.touches[0])[N]}function x(y){return u=y,f=y,m(y)}function g(y){const j=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),j}function p(y){if(!u||!f)return 0;const j=m(f)-m(u),z=d(y)-d(u),N=d(y)-d(f)>170,A=j/z;return z&&!N&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function fy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function dy(s){function r(u){return s*(u/100)}return{measure:r}}function my(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function j(L){return f.measureSize(m.measure(L))}function z(L){if(!d)return;p=j(s),v=u.map(j);function H(G){for(const R of G){if(y)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:v[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function N(){y=!0,g&&g.disconnect()}return{init:z,destroy:N}}function hy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function j(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=_u(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:z,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function py(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!z&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Cu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=x;return m.slice(N,A)}return{snapsContained:g,scrollContainLimit:x}}function gy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function by(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(j){return j===1?g(o.get()):j===-1?x(o.get()):!1}function v(j){if(!p(j))return;const z=s*(j*-1);u.forEach(N=>N.add(z))}return{loop:v}}function vy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function yy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=j(),v=z();function y(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function z(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:v}}function jy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const j=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?j:j.slice(x,g).map((N,A,L)=>{const H=!A,G=Cu(L,A);if(H){const R=al(L[0])+1;return lp(R)}if(G){const R=Vs(d)-al(L)[0]+1;return lp(R,al(L)[0])}return N})}return{slideRegistry:p}}function Ny(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):x(N),L=r.map((G,R)=>({diff:v(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function v(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return g(L);const H=L.filter(G=>_u(G)===A);return H.length?g(H):al(L)-o}function y(N,A){const L=r[N]-f.get(),H=v(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+v(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:y,shortcut:v}}function Sy(s,r,o,u,f,d,m){function x(y){const j=y.distance,z=y.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,j){const z=f.byDistance(y,j);x(z)}function p(y,j){const z=r.clone().set(y),N=f.byIndex(z.get(),j);x(N)}return{distance:g,index:p}}function wy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Au(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(yr(x)||x(z,H))&&N(L)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Os(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function x(j){return`translate3d(0px,${j}px,0px)`}function g(j){if(d)return;const z=sy(s.direction(j));z!==f&&(u.transform=o(z),f=z)}function p(j){d=!j}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ey(s,r,o,u,f,d,m,x,g){const v=$s(f),y=$s(f).reverse(),j=H().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Os(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=N(y,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(v,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function zy(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ty(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(N=>{g||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>x.observe(N))}function v(){x&&x.disconnect(),g=!0}function y(N){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=y(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:v,get:j}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=N(),y=A(),j=o.map(m),z=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?j[R]+v:V?j[R]+y:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:z,startGap:v,endGap:y}}function _y(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,j=Au(o);function z(H,G){return $s(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?$s(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Vs(H),W=f[p]-d[X][p],le=f[p]-d[R][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?z(H,o):N(H)}return{groupSlides:A}}function Cy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:j,dragFree:z,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=fy(),le=W.measure(r),xe=o.map(W.measure),ce=cy(g,p),K=ce.measureSize(le),he=dy(K),Xe=iy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,M,f),w=_y(ce,K,L,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=yy(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=xy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=gy(F,oe,y),Te=Vp(Vs(oe),v,y),at=Te.clone(),Oe=$s(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Bn,options:{loop:sl}})=>{sl||Bn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Bn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:Sr,animation:wr,eventHandler:Js,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=bl.settled(),Ba=!La.shouldConstrain(),Bl=pa?rl:rl&&Ba,Fs=Bl&&!Sr.pointerDown();Fs&&wr.stop();const Ws=Bn.get()*xa+bt.get()*(1-xa);sl.set(Ws),pa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=ry(u,f,()=>te(Hn),bl=>Ce(Hn,bl)),tt=.68,Nt=oe[Te.get()],It=Os(Nt),nl=Os(Nt),Bt=Os(Nt),Pt=Os(Nt),gl=hy(It,Bt,nl,Pt,j,tt),Dn=Ny(y,oe,F,ze,Pt),Rn=Sy(De,Te,at,gl,Dn,Pt,m),pt=vy(ze),Zs=Gs(),Ks=Ty(r,o,m,A),{slideRegistry:Un}=jy(ie,G,oe,fe,w,Oe),Ha=wy(s,o,Un,Rn,gl,Zs,m,V),Hn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:oy(ce,s,u,f,Pt,uy(ce,f),It,De,Rn,gl,Dn,Te,m,he,z,N,H,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:my(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:py(ze,Bt,Pt,gl,he),scrollLooper:by(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Dn,scrollTo:Rn,slideLooper:Ey(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:zy(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Un,slidesToScroll:w,target:Pt,translate:Zp(ce,r)};return Hn}function ky(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const My={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Oy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Dy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Oy(f),m=Dy(d),x=Gs(),g=ky(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:j,off:z,emit:N}=g,A=ce;let L=!1,H,G=p(My,pr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Cy(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=v(G),Z=te||Z,W(),H=le(R),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==w()}function ae(){return H.index.add(-1).get()!==w()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function w(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function ku(s={},r=[]){const o=D.useRef(s),u=D.useRef(r),[f,d]=D.useState(),[m,x]=D.useState(),g=D.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return D.useEffect(()=>{Tu(o.current,s)||(o.current=s,g())},[s,g]),D.useEffect(()=>{ay(u.current,r)||(u.current=r,g())},[r,g]),D.useEffect(()=>{if(ly()&&m){pr.globalOptions=ku.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}ku.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=D.useRef(o);u.current=o,D.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let j=!1;const z=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,x())},N=()=>{j&&(j=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",N),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ry(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function kn({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[j,z]=ku({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=D.useState([]),[L,H]=D.useState(0),[G,R]=D.useState(!1),[Z,X]=D.useState(!1),V=D.useRef(null),Y=D.useId();D.useEffect(()=>{var Q;if(!z)return;const ie=()=>{H(z.selectedScrollSnap()),R(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{A(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),D.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),Jp({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=D.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=D.useRef(g);le.current=g;const xe=D.useRef(p);xe.current=p,D.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=D.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=D.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(ap,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ap,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function jr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function ap({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Mu({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ou({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Fp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function sp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Wp({children:s,initial:r=3,label:o}){const[u,f]=D.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Nr({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return D.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})})]}),f]})]}):null}function Uy(){const s=P(),{narrative:r,place:o}=s,u=mv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const ip=10;function rp(){const s=P(),r=s.posts??[],[o,u]=D.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/ip);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/ip)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Qo=s=>!s.note&&Hy.has(s.value.trim()),Ly=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function By(){var j,z;const s=P(),r=xu(s),o=Tn(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(N=>N.key));for(const N of d)x.has(N.key)||(m.push(N),x.add(N.key));const g=N=>Qo(N)?!1:Ly.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(N=>!g(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:y.filter(N=>!Qo(N)),children:n.jsx(Yy,{rows:y.filter(Qo)})}),p.map(N=>n.jsx(Gy,{text:N},N.slice(0,32))),n.jsx(Xy,{})]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Vo=new Set(["가능","있음"]),qy="#16a34a",$y="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Vo.has(u.value))-Number(Vo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Vo.has(o.value),f=u?qy:$y;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Gy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Xy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=D.useRef(Date.now()),[f,d]=D.useState(!1),[m,x]=D.useState(null);D.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ms,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ms,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ms,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ms,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ms,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ms({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Zo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Ko(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ip(){var ce;const s=P(),r=D.useMemo(()=>Jy(s),[s]),o=D.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=D.useMemo(()=>Ky(o),[o]),[f,d]=D.useState(null),[m,x]=D.useState(0);D.useEffect(()=>d(new Date),[]);const g=D.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=D.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=D.useState(null),[j,z]=D.useState(null),[N,A]=D.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=D.useState(2),[G,R]=D.useState(!1),[Z,X]=D.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||j));return D.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(X0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Ko(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Ko(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(zn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Zo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(I0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(xb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Nb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Ko(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(wb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=D.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:qs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(yu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Jo(){var p;const s=P(),r=ht(s),o=$p(s),[u,f]=D.useState(null),d=vr();if(d==="reservation")return n.jsx(Py,{});if(d==="oasi")return n.jsx(e1,{});if(d==="studio")return n.jsx(t1,{});if(d==="pastel")return n.jsx(l1,{});if(d==="editorial")return n.jsx(a1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Wy,{});if(m==="rooms.tabs")return n.jsx(Iy,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Mu,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(s1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Ou,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(j=>j.unitId===v.unitId);return n.jsx(Nr,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,title:v.name,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:vu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]}),n.jsx(Ip,{})]})]})},v.unitId)})]})}function s1({images:s,name:r}){return n.jsx(kn,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(jr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Ke(s),o=xv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Fp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(sp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(sp,{href:f.url,variant:"outline",external:!0,children:vu(f)},f.url))]})})]})})}function fp(){const s=P(),r=$p(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Y0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(q0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:vu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ip,{})]})})}function r1(){const s=P(),r=bv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Mu,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Fp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=D.useState([]);return D.useEffect(()=>r(ev()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=D.useState(null);if(r.length===0)return null;const d=f1.filter(y=>r.some(j=>j.season===y)),m=r.filter(y=>{var j;return!((j=y.season)!=null&&j.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const j=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const j=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(dp,{items:j,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=D.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(kn,{label:r,children:s.map(d=>n.jsx(jr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Nr,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Zv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Hs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Hs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Hs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Hs}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Hs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=D.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(j=>y.test(fa(j))).length,g=mp.filter((y,j)=>j===0||x(y)>0&&x(y)y.id===f)??mp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[ju(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Hs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const j=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:Ab,places:o,within:v}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=D.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(kn,{label:s,children:f.map(x=>n.jsx(jr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Nr,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ih(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ih(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=D.useState(s);return D.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const j=await y.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(z=>({temperature:Number(j.weather.temperature),condition:x1(Number(j.weather.weather_code)),note:z==null?void 0:z.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=D.useState({});return D.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:zb,흐림:nb,비:eb,눈:lb};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var y,j,z,N,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=ov((r==null?void 0:r.condition)??""),u=uv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=b1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),v=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Mu,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=D.useState(null),m=D.useCallback(()=>d(null),[]),x=D.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return D.useEffect(()=>{if(f===null)return;const g=v=>{v.key==="Escape"&&m(),v.key==="ArrowLeft"&&x(-1),v.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsx(kn,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(jr,{basis:"basis-full",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Fo({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=D.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Iv(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Wv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(ib,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Jv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(V0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function S1(){const s=P(),r=fv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===Bb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Wp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(cb,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Qs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function Mn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?Su:x==="oasi"?wu:x==="studio"?Eu:x==="pastel"?zu:x==="editorial"?yu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function On({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(kn,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Xs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function ex(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=D.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Xs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Kv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(kb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=D.useState();if(D.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Xs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(z1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function tx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Xs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Xs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(On,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function lx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(On,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ax(){const s=P(),r=D.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(On,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function nx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Xs(r.items.length,r.unverified,"장"),children:n.jsx(On,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=D.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(On,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Ds=318,En=168,yp=34,A1=16,jp=4;function sx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>jp;r-=1){const o=s.map(d=>sx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ds-yp*2&&f<=En-yp*2)return r}return jp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Fv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(N=>sx(N.lat,N.lng,d))),x=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,g=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=x-Ds/2,v=g-En/2,y=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Ds)/Hl);N+=1)for(let A=Math.floor(v/Hl);A<=Math.floor((v+En)/Hl);A+=1){if(A<0||A>=y)continue;const L=(N%y+y)%y;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-v})}const z=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ds,height:En,viewBox:`0 0 ${Ds} ${En}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:O1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=Pb({name:s.name,startTime:o,stops:u}),[p,v]=D.useState(!1);return D.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&v(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(y=>y.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((y,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:y.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[y.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",y.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[y.stop.imageUrl&&p&&n.jsx("img",{src:y.stop.imageUrl,alt:`${y.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:j+1}),y.stop.name]}),y.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[y.time,"–",y.until,y.stop.searchQuery&&` · 지도 검색 ${y.stop.searchQuery}`]})]})]},`${y.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>v(y=>!y),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Wo}))],[d,m]=D.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var j;return(((j=y.duration)==null?void 0:j.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=D.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=su(v).length,{item:v,start:y}})},[r]),[f,d]=D.useState(0),m=D.useRef(null),x=D.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(On,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>{const y=su(p);return y.map((j,z)=>n.jsx(U1,{item:p,badge:j.label??p.duration??`${z+1}일차`,startTime:j.startTime,stops:j.stops,first:z===0,placeName:o,continuesFrom:z>0,continuesTo:z{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=D.useCallback(v=>{const y=f.current;if(!y)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Ry(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const j=Xb(v.url),z=Qb(v.url),N=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Zb(j),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Vb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(yb,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:ex},{id:"people",label:"인물 열전",Component:tx},{id:"chronicle",label:"시간의 골목",Component:lx},{id:"reading",label:s,Component:ax},{id:"postcard",label:"오늘의 엽서",Component:nx}];function Y1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=D.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=D.useState();D.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=D.useState(null),m=D.useCallback(()=>d(null),[]);if(D.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Wp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?Sp(p,o):void 0,j=Io(p,y),z=Po(p),N=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&j!=="공지"?Ze:Ft,color:y==="open"&&j!=="공지"?ma:dl,borderColor:y==="open"&&j!=="공지"?Ze:Se},children:j}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:ex,daily:E1,people:tx,chronicle:lx,reading:ax,postcard:nx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",wp=5,Ep=500;function K1(){const s=P(),[r,o]=D.useState(s.reviews??[]),u=D.useRef(Date.now()),[f,d]=D.useState(0),[m,x]=D.useState(""),[g,p]=D.useState(!1),[v,y]=D.useState(!1),[j,z]=D.useState(null),N=s.site.placeId,A=D.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);D.useEffect(()=>{u.current=Date.now(),A()},[A]),D.useEffect(()=>{v&&(u.current=Date.now())},[v]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await A())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Nr,{open:v,onClose:()=>y(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Rs=4,mt=56,ru=190,eu="#1b1a15",F1="#efe7d3",zp="#bf2f1b";function ix(s=iu){return s-mt-ru-mt-24}function rx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),v=m-mt*2,y=v/1.5,j=Math.max(v/g.width,y/g.height),z=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-N)/2,z,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const A=mt+y+36,L=m-mt-ru,H=ix(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=rx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Rs);if(G.length>Rs){let W=R[Rs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Rs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=D.useRef(null),[u,f]=D.useState(0),[d,m]=D.useState(""),[x,g]=D.useState(""),[p,v]=D.useState(!1),[y,j]=D.useState(!0);D.useEffect(()=>{var R;v(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(D.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:z,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,z,N,r]),D.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:z,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",rx(Z,`“${R}”`,ix()).length<=Rs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(kn,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Mn,{})]})}function cx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=cx(),[o,u]=D.useState(!1);D.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,v,y,j;const s=P(),{place:r,site:o,narrative:u}=s,f=cx(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Bs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Bs(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Qs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var v,y,j,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ua(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Bs(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Qs(r.site.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function uj({children:s}){var j,z,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=Ua(r),g=Ke(r)[0],p=pu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Qs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Mn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(ub,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Mn,{})]})}function hj({children:s}){var p,v,y,j;const r=P(),{place:o,site:u}=r,f=Gp(),d=pj(f),m=Ke(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:qs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const N=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Qs(u.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=D.useState("");return D.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Uy,info:By,rooms:Jo,menu:Jo,programs:Jo,booking:r?fp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:gp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Vv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!zv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(Mb,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Tv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Mn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=tv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Du(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return D.useEffect(()=>Du(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(hr).render(n.jsxs(D.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(jj,{})]})),Du(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?tu.hydrateRoot(hr,n.jsx(D.StrictMode,{children:n.jsx(cu,{payload:_p})})):Cp?Nj(Cp).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Du(!1)}):S0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-COzl82BE.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(hr).render(n.jsx(D.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Xh as F,it as L,da as P,Bb as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DmQEY1EO.js b/solution/site/scripts/mockup/vendor/retired/index-DmQEY1EO.js new file mode 100644 index 0000000..e08cad9 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DmQEY1EO.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Nb="modulepreload",Sb=function(s){return"/"+s},Oh={},wb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=Sb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Nb,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Eb(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function zb(){return Rh||(Rh=1,$o.exports=Eb()),$o.exports}var n=zb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Tb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(x)&&u(x),Z(M)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(x)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(x,M),N||w||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function Cb(){return Bh||(Bh=1,Xo.exports=Ab()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function _b(){if(qh)return xt;qh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=_b(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function Mb(){if(Yh)return Ds;Yh=1;var s=Cb(),r=fu(),o=kb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Cs._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Vx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Zx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,C[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===C.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=C.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=C.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(jb){return t(T,jb)}),je&&Sl(T,me),ne}function He(T,z,C,B){if(typeof C=="object"&&C!==null&&C.type===A&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:e:{for(var ne=C.key;z!==null;){if(z.key===ne){if(ne=C.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,C.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,C.props),is(B,C),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}C.type===A?(B=Na(C.props.children,T.mode,B,C.key),B.return=T,T=B):(B=hi(C.type,C.key,C.props,null,T.mode,B),is(B,C),B.return=T,T=B)}return h(T);case N:e:{for(ne=C.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===C.containerInfo&&z.stateNode.implementation===C.implementation){l(T,z.sibling),B=i(z,C.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(C,T.mode,B),B.return=T,T=B}return h(T);case W:return C=Ta(C),He(T,z,C,B)}if(ie(C))return I(T,z,C,B);if(K(C)){if(ne=K(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),se(T,z,C,B)}if(typeof C.then=="function")return He(T,z,ji(C),B);if(C.$$typeof===R)return He(T,z,gi(T,C),B);Ni(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,C),B.return=T,T=B):(l(T,z),B=ac(C,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,C,B){try{ss=0;var ne=He(T,z,C,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),kf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Lc(e,!1,t,l);try{var S=i(),_=M.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?xg:function(){return Cd(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cd(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(Cs)}function _d(){return Je().memoizedState}function kd(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ms={readContext:ut,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:Ai,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(_a){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(_a){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Cl(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(za);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++_===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var C=$.createRange();C.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(C),D.extend(z.node,z.offset)):(C.setEnd(z.node,z.offset),D.addRange(C))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Gd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ps()),e=ja(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Rg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Hg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function lb(e){Ul.D(e),mh("dns-prefetch",e,null)}function ab(e,t){Ul.C(e,t),mh("preconnect",e,t)}function nb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(As(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function sb(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(As(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function ib(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function rb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function cb(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ob(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ob(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function As(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(As(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ub(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function db(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(mb,e),ar=null,lr.call(e))}function mb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Mb(),Go.exports}var au=Ob();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Db=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Rb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Ub=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>O.createElement("svg",{ref:x,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!Ub(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ce=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Lb,{ref:d,iconNode:r,className:Mp(`lucide-${Db(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=Ce("arrow-up-right",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$b=Ce("bed-double",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Gb=Ce("calendar-check",Yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Qb=Ce("calendar-days",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Zb=Ce("car",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=Ce("check",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=Ce("chevron-down",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cn=Ce("chevron-left",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=Ce("chevron-right",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pb=Ce("clock",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],t0=Ce("cloud-rain",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],a0=Ce("cloud-snow",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],s0=Ce("cloud",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r0=Ce("copy",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],o0=Ce("external-link",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],f0=Ce("instagram",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=Ce("mail",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=Ce("map-pin",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=Ce("menu",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=Ce("message-circle",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M5 12h14",key:"1ays0h"}]],g0=Ce("minus",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=Ce("navigation",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=Ce("phone",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],j0=Ce("play",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S0=Ce("plus",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],E0=Ce("rotate-ccw",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T0=Ce("sun",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=Ce("utensils",A0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=Ce("x",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],M0=Ce("youtube",k0),Rp=O.createContext(null);function O0({payload:s,children:r}){return n.jsx(Rp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function D0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function B0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,g]=O.useState(!1),[x,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),j=O.useRef(null),w=O.useRef(null),N=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(D0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(U0,{}):n.jsx(R0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(L0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Qh(x.now)}${x.total?` / ${Qh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},q0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$0=[Vh.VERIFIED,Vh.CORRECTED];function Up(s){return $0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Tj={PUBLISHED:3};function _n(s){return s.filter(r=>Up(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Y0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Y0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function G0(s){return s.filter(r=>Up(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const X0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Q0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function V0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Z0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function K0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function J0(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function F0(s,r){const o=X0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:J0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const W0=1260,I0=60,P0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(P0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??I0),x=u+m;if(x+g>W0){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,g,x]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Lp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Bp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function qp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??qp(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Lp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=Ct(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return G0(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=F0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Lp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=qp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Bp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=Ct(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=An(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(B0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Cv;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[x,p]=O.useState(0),[y,v]=O.useState(!1),j=O.useRef(null),w=O.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return O.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Uv[s??""]??"default"}function Sr(){return Yp(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Hv),x=f?{href:f.url,label:`${An(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:g||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Su(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function wu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(wu(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(wu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(wu(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Au({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?Eu:p==="oasi"?zu:p==="studio"?Tu:p==="pastel"?Au:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!tp(g)||!tp(x)?g===x:Cu(g,x)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Cu(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function ku(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Mu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=ap(d)&&ap(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(ku(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=ku(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Da(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Mu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Da(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=Mu(L,A);if(H){const R=al(L[0])+1;return np(R)}if(G){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>ku(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Ey(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return _u(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function zy(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Mu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(x,p),K=ce.measureSize(le),he=my(K),Xe=ry(g,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,M,f),E=_y(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:pa}},xa)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=pa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*xa+gt.get()*(1-xa);sl.set(Ps),pa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=cy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,j,tt),Hn=Sy(v,oe,F,ze,Pt),Ln=wy(De,Te,at,gl,Hn,Pt,m),pt=yy(ze),Js=Qs(),Fs=Ay(r,o,m,A),{slideRegistry:Bn}=Ny(ie,G,oe,fe,E,Oe),Ba=Ey(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),g=Qs(),x=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Oy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Ou(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,g]=O.useState(),x=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Cu(o.current,s)||(o.current=s,x())},[s,x]),O.useEffect(()=>{ny(u.current,r)||(u.current=r,x())},[r,x]),O.useEffect(()=>{if(ay()&&m){br.globalOptions=Ou.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Ou.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=O.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Ou({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(x);le.current=x;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=O.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Du({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ru({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ra({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function qy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[190px]",children:n.jsx($y,{post:o})},o.postId))})})}function $y({post:s}){const{month:r,day:o,weekday:u}=qy(s.publishedAt),f=By(r),d=Ly[f];return n.jsxs("article",{className:"tpl-border relative isolate flex aspect-square flex-col overflow-hidden rounded border border-dashed p-4",style:{background:`linear-gradient(165deg, color-mix(in srgb, ${d} 15%, var(--tpl-card, #efe7d3)) 0%, var(--tpl-card, #efe7d3) 62%)`,borderColor:`color-mix(in srgb, ${d} 32%, var(--tpl-border, #d6d3d1))`},children:[n.jsx("span",{"aria-hidden":!0,className:"absolute -top-[5px] left-1/2 size-[9px] -translate-x-1/2 rounded-full border",style:{backgroundColor:"var(--tpl-surface, #fafafa)",borderColor:"var(--tpl-border, #d6d3d1)"}}),n.jsxs("time",{dateTime:s.publishedAt,className:"relative z-[1] mb-2.5 block shrink-0 text-center",children:[n.jsxs("span",{className:"text-muted block text-[length:var(--fs-xs)] tracking-wide",children:[r,"월"]}),n.jsx("span",{className:"serif block text-[28px] font-bold leading-none",style:{color:d},children:o}),n.jsx("span",{className:"text-muted mt-0.5 block text-[10.5px]",children:u})]}),n.jsx("p",{className:"relative z-[1] line-clamp-4 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body}),n.jsx("span",{className:"sr-only",children:Su(s.publishedAt)})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Ky,{text:N},N.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,g]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=fp(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Bp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=O.useMemo(()=>Py(s),[s]),o=O.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Iy(o),[o]),[f,d]=O.useState(null),[m,g]=O.useState(0);O.useEffect(()=>d(new Date),[]);const x=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&x?Wy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=O.useState(null),[j,w]=O.useState(null),[N,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Qb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Cn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(up,K+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Pb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(g0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(S0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(E0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Ru,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Au,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),g=Sr();if(g==="reservation")return n.jsx(a1,{});if(g==="oasi")return n.jsx(n1,{});if(g==="studio")return n.jsx(s1,{});if(g==="pastel")return n.jsx(i1,{});if(g==="editorial")return n.jsx(r1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(t1,{});if(x==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Du,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(o1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Ru,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(Ra,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(Ra,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Gb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($b,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Du,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ra,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=hp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Su(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:C0,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(Ra,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:ep(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function y1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function j1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:y1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function N1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,g=o!=null&&o.length?xp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const S1={맑음:T0,흐림:s0,비:t0,눈:a0};function w1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function E1(){var v,j,w,N,A;const s=P(),r=j1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=N1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=w1(r.observedAt),y=S1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Du,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function z1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),g=O.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(gp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=Pv(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(r0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function T1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===q0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:An(u)}),n.jsx(o0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=O.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(Ra,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=O.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=O.useContext(ex),p=g==="reservation"?Eu:g==="oasi"?zu:g==="studio"?Tu:g==="pastel"?Au:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ma:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Jv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(M0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(_1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function _1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function k1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,jp=34,M1=16,Np=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function O1(s){if(s.length<2)return 15;for(let r=M1;r>Np;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-jp*2&&f<=Tn-jp*2)return r}return Np}function D1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!R1(f,g)?f:void 0}),f=g)}),u}function R1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function U1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function H1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function L1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=D1(s,o),d=O1(f),m=U1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+Tn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:H1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function B1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function q1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=ev({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",B1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(L1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function $1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=O.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),g=O.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(q1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=O.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Q0(y.url),w=V0(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:K0(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Z0(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(j0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const X1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Q1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function V1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",X1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ma,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Z1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Z1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function K1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?wp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ma:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const J1={songs:tx,daily:C1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:k1,itinerary:$1,video:G1,event:K1,story:V1},F1="/v1/site/review",W1="/v1/site/reviews",Ep=5,zp=500;function I1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,g]=O.useState(""),[x,p]=O.useState(!1),[y,v]=O.useState(!1),[j,w]=O.useState(null),N=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${W1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(F1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Su(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Ra,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function P1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",ej="#efe7d3",Tp="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function tj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const lj="/v1/image/relay?url=";async function aj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${lj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function nj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Ap(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=nj();d.clearRect(0,0,m,m),d.fillStyle=ej,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await aj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${g}`;const X=tj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Cp="postcard.png";function sj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[g,x]=O.useState(""),[p,y]=O.useState(!1),[v,j]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Ap(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Ap(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Cp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Cp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function ij({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(oj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(uj,{}),n.jsx(Rn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const rj=24,cj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function oj(){const s=P(),r=ox(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>rj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:cj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function uj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:An(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:An(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const fj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,dj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function mj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:An(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function hj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const pj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,xj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function gj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:xj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:pj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(f0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Rn,{})]})}function bj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Gp(),d=vj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function vj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function yj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?dp:u1,space:f1,inquiry:d1,exhibition:m1,photos:z1,festival:x1,local:b1,weather:E1,map:bp,faq:T1,...J1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(bp,{}),r&&!Tv(s,"booking")&&n.jsx(dp,{}),!Lt(s,"intro")&&n.jsx(cp,{}),n.jsx(I1,{}),n.jsx(sj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(P1,{})})]})}function uu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?ij:r==="oasi"?mj:r==="studio"?hj:r==="pastel"?gj:r==="editorial"?bj:jj;return n.jsx(O0,{payload:s,children:n.jsx(o,{children:n.jsx(yj,{})})})}function jj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Rn,{})]})}function Nj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Sj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function wj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Sj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Ej(){return O.useEffect(()=>Uu(!0),[]),null}async function zj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Nj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=wj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(O.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Ej,{})]})),Uu(!0)}const kp=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:_p})})):kp?zj(kp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):wb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CD7VPpnE.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(O.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,q0 as S,Tj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DrxjIq-M.js b/solution/site/scripts/mockup/vendor/retired/index-DrxjIq-M.js new file mode 100644 index 0000000..52b94e4 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DrxjIq-M.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const wb="modulepreload",Eb=function(s){return"/"+s},Oh={},zb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Eb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":wb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Tb(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function kb(){return Rh||(Rh=1,$o.exports=Tb()),$o.exports}var n=kb(),Go={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function _b(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new Y;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var G={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,G=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(g)&&u(g),Z(O)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){G=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(k?(Y(G),G=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(g,O),j||w||(j=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=N;return function(){var ae=N;N=Q;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Bh;function Cb(){return Bh||(Bh=1,Xo.exports=Ab()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Mb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Mb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Db(){if(Gh)return Ds;Gh=1;var s=Cb(),r=fu(),o=Ob();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Gn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Gn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bx=/[\n"\\]/g;function $t(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Gl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Vx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Kx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Jx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Gl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ag=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Sb){return t(T,Sb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Cf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=dg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function bg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=kd(e).queue;Td(e,i,t,ae,l===null?bg:function(){return _d(e),l(a)})}function kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=kd(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function Ad(){return Je().memoizedState}function Cd(){return Je().memoizedState}function vg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function yg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=yg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Gi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Eg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Zg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function zg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=jf(b,se),z=jf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Lm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{dm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,Nm(c.current),vm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=Gc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new _g;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Dg.bind(null,e,t,l),t.then(e,e))}function Dg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Yn(e,t),fl(e))}function Rg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Ug(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Hg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Bg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Lg(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Jg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&th($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e){Ul.D(e),mh("dns-prefetch",e,null)}function sb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function ib(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function rb(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function cb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ob(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ub(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||fb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function fb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function db(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function hb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(pb,e),ar=null,lr.call(e))}function pb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=Db(),Yo.exports}var au=Rb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ub=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Hb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Bb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Bb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(qb,{ref:d,iconNode:r,className:Mp(`lucide-${Ub(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Qb=_e("calendar-check",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Zb=_e("calendar-days",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Jb=_e("car",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t0=_e("clock",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],a0=_e("cloud-rain",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],s0=_e("cloud-snow",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],r0=_e("cloud",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],o0=_e("copy",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],f0=_e("external-link",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],m0=_e("instagram",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=_e("mail",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=_e("menu",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["path",{d:"M5 12h14",key:"1ays0h"}]],v0=_e("minus",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],S0=_e("play",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],E0=_e("plus",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],T0=_e("rotate-ccw",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],_0=_e("sun",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=_e("utensils",A0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",M0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],D0=_e("youtube",O0),Rp=M.createContext(null);function R0({payload:s,children:r}){return n.jsx(Rp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function U0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function B0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function q0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function $0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),G={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)G.left="8px",G.right="8px";else{G.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();G.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(G)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=G=>{var le,xe;const W=G.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(X=o)=>{const V=N.current,G=r[X];!V||!G||(V.getAttribute("src")!==G.audioUrl&&(V.src=G.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),Y(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(U0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(L0,{}):n.jsx(H0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(B0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(q0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},G0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Up(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},_j={PUBLISHED:3};function An(s){return s.filter(r=>Up(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?X0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function X0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Q0(s){return s.filter(r=>Up(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const V0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Z0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function K0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function J0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function F0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function W0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function I0(s,r){const o=V0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:W0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const P0=1260,ev=60,tv="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function lv(s){const r=Kh(s.startTime??"")??Kh(tv)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??ev),g=u+m;if(g+x>P0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function av(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function nv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Lp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function sv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Bp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function iv(s){return/\/p\/search\/|[?&]query=/.test(s)}function qp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!iv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??qp(s)[0]??sv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const rv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function cv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Lp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:cv(u.facts.filter(m=>!rv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:ov(u),prices:fv(u),href:`/${r.path}/${u.slug}`}})}function ov(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const uv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function fv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?uv.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function dv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function mv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function hv(s){return Q0(s.faqs)}function pv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function xv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=I0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Lp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function gv(s,r){return Cn(s,[r])[0]}const bv=["reservation_required","reservation_channel"];function vv(s){return Cn(s,bv)}const yv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function jv(s){return Cn(s,yv)}const Nv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Sv(s){return Cn(s,Nv)}const wv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,wv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=qp,Tv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function kv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Bp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:kv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,Tv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function _v(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return zv(s,Ev)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx($0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Mv(s){return Ov(s).join(" ")}function Ov(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Dv=6e3,Rv=5;function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var k;return(k=j.alt)==null?void 0:k.trim()}).sort((j,k)=>Number(k.isPrimary)-Number(j.isPrimary)).slice(0,Rv),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(k=>(k+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Dv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const k=N.current;if(N.current=null,k===null)return;const L=j.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,k)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===g,className:`h-1.5 rounded-full bg-current transition-all ${k===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Hv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=gv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Lv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Lv[s??""]??"default"}function Sr(){return Gp(P().theme.templateId)}const xr=5,nu=1.8,Bv=3;function qv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function $v(s,r){return((r-s)%r*xr+nu).toFixed(1)}function Gv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Bv),g=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:qv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Xv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Gs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Vv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Zv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of pv(s)){const m=Vv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Zv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Kv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Gs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Jv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx(Gv,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Xv,{});if(r==="pastel")return n.jsx(Qv,{});if(r==="editorial")return n.jsx(Kv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Uv,{});if(o==="hero.split")return n.jsx(Hv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Xp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Fv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Wv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Iv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Pv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function ey(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ty(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ly={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ay;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ly[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ay({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ny(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ny(s)||Array.isArray(s)}function sy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:ku(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function iy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ye(s-r)}function ry(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Bs(Ye(s),Ye(r));return Ye(o/s)}function cy(s){return Math.round(s*100)/100}function Ys(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function oy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function uy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function fy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:k,width:L}=j;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function dy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,k,L,H,Y){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},G=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!Y)return;function Ae(tt){(wr(Y)||Y(te,tt))&&fe(tt)}const De=r;G.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){G.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=ry(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function my(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,k=N/w;return w&&!j&&Ye(k)>.1?k:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function hy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function py(s){function r(u){return s*(u/100)}return{measure:r}}function xy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],G=N(Z?s:u[X]);if(Ye(G-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(wr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function gy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),G=!g;let W=0;return G?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ye(V)<.001}function j(){return g}function k(){return x}function L(){return m}function H(){return R(f)}function Y(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:k,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function by(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",k=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(k/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!k,Z=Cu(o,k);return R?H:Z||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:k}=x;return m.slice(j,k)}return{snapsContained:g,scrollContainLimit:x}}function yy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function jy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function Ny(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Sy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(k=>al(k)[m]-k[0][d]).map(Ye)}function N(){return u.map(k=>o[d]-k[d]).map(k=>-Ye(k))}function w(){return x(p).map(k=>k[0]).map((k,L)=>k+g[L])}return{snaps:p,snapsAligned:y}}function wy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,k,L)=>{const H=!k,Y=Cu(L,k);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Ey(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((k,L)=>Ye(k)-Ye(L))[0]}function p(j){const k=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-k,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(j,k){const L=[j,j+o,j-o];if(!s)return j;if(!k)return g(L);const H=L.filter(Y=>Au(Y)===k);return H.length?g(H):al(L)-o}function v(j,k){const L=r[j]-f.get(),H=y(L,k);return{index:j,distance:H}}function N(j,k){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:j};const Z=r[H]-Y,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function zy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function Ty(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(k));_u(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=cy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function ky(s,r,o,u,f,d,m,x,g){const y=Ys(f),v=Ys(f).reverse(),N=H().concat(Y());function w(G,W){return G.reduce((le,xe)=>le-f[xe],W)}function j(G,W){return G.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(G){return d.map((W,le)=>({start:W-u[le]+.5+G,end:W+r-.5+G}))}function L(G,W,le){const xe=k(W);return G.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Kp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const G=m[0],W=j(v,G);return L(W,o,!1)}function Y(){const G=r-m[0]-1,W=j(y,G);return L(W,-o,!0)}function R(){return N.every(({index:G})=>{const W=y.filter(le=>le!==G);return w(W,r)<=.1})}function Z(){N.forEach(G=>{const{target:W,translate:le,slideLocation:xe}=G,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(G=>G.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function _y(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&k.push(H),k},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const k=v(j);return j&&(d=k),j||(m=k),k}return{init:p,destroy:y,get:N}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=k(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function k(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function My(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,Y){return Ys(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Ys(H).reduce((Y,R,Z)=>{const X=al(Y)||0,V=X===0,G=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&G?v(x):0,K=Ye(le-ce-(W+xe));return Z&&K>r+g&&Y.push(R),G&&Y.push(H.length),Y},[]).map((Y,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,Y)}):[]}function k(H){return N?w(H,o):j(H)}return{groupSlides:k}}function Oy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,G=2,W=hy(),le=W.measure(r),xe=o.map(W.measure),ce=fy(g,p),K=ce.measureSize(le),he=py(K),Xe=oy(x,K),ie=!v&&!!Y,O=v||!!Y,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,O,f),E=My(ce,K,L,v,le,xe,pe,Ne,G),{snaps:q,snapsAligned:J}=Sy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=vy(K,F,J,Y,G),oe=ie?re:J,{limit:ze}=yy(F,oe,v),Te=Zp(Zs(oe),y,v),at=Te.clone(),Oe=Ys(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Gn,options:{loop:sl}})=>{sl||Gn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Gn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Gn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=uy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=gy(It,Bt,nl,Pt,N,tt),Hn=Ey(v,oe,F,ze,Pt),Ln=zy(De,Te,at,gl,Hn,Pt,m),pt=Ny(ze),Js=Qs(),Fs=Ay(r,o,m,k),{slideRegistry:Bn}=wy(ie,Y,oe,fe,E,Oe),Ba=Ty(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:dy(ce,s,u,f,Pt,my(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,j,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:xy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:by(ze,Bt,Pt,gl,he),scrollLooper:jy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:ky(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:_y(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Kp(ce,r)};return qn}function Dy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Ry={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Uy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Hy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Uy(f),m=Hy(d),x=Qs(),g=Dy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,k=ce;let L=!1,H,Y=p(Ry,br.globalOptions),R=p(Y),Z=[],X,V,G;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;G=[].slice.call(De||V.children)}function le(Oe){const te=Oy(s,V,G,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(Y=p(Y,Oe),R=y(Y),Z=te||Z,W(),H=le(R),v([Y,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>x.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&G.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return G}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{iy(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(sy()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ly(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Wp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,k]=M.useState([]),[L,H]=M.useState(0),[Y,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),G=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Fp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(g);le.current=g;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:G,children:n.jsx(Wp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":G,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Wp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru(s){M.useEffect(()=>{if(!s)return;const r=window.scrollY,o=document.body,u=o.style.position,f=o.style.top,d=o.style.width,m=o.style.overflow;return o.style.position="fixed",o.style.top=`-${r}px`,o.style.width="100%",o.style.overflow="hidden",()=>{o.style.position=u,o.style.top=f,o.style.width=d,o.style.overflow=m;const x=document.documentElement,g=x.style.scrollBehavior;x.style.scrollBehavior="auto",window.scrollTo(0,r),x.style.scrollBehavior=g}},[s])}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,Ru(s),M.useEffect(()=>{if(!s)return;const x=g=>{g.key==="Escape"&&m.current()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function By(){const s=P(),{narrative:r,place:o}=s,u=xv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const qy={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function $y(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function ex(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?ex(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx(Gy,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function Gy({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=ex(s.publishedAt),d=$y(o),m=qy[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Xy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Qy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Vy(){var N,w;const s=P(),r=bu(s),o=An(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Mv(s),f=s.links.filter(j=>{var k,L,H;return j.confirmed&&[(k=j.stayGuide)==null?void 0:k.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var k;return((k=j.stayGuide)==null?void 0:k.fields)??[]}),m=Qy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Xy.has(j.label)||d.some(k=>k.key===j.key&&k.group==="rules"),p=f.map(j=>{var k;return((k=j.stayGuide)==null?void 0:k.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Jy,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Fy,{text:j},j.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Zy="#16a34a",Ky="#e04b25";function Jy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Zy:Ky;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Fy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Wy="/v1/site/booking-request";function Iy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Wy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Py(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=fp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function t1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Bp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>t1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>e1(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Py(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[Y,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,G=r.find(K=>K.unitId===j)??null,W=(G==null?void 0:G.maxCapacity)??8,le=V&&G?V.isWeekend?G.weekendPrice??G.weekdayPrice:G.weekdayPrice:void 0,xe=!!(y&&G&&(u.length===0||N));return M.useEffect(()=>{H(K=>Math.min(K,(G==null?void 0:G.maxCapacity)??8))},[G]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!Y?null:Y?n.jsx(l1,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,G?Wo(G.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,G?Wo(G.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(up,K+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(t0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(v0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(E0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${G?Wo(G.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function l1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(T0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Iy,{stay:o,guests:u})]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function r1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function c1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function o1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Gs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(u1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function u1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(s1,{});if(x==="oasi")return n.jsx(i1,{});if(x==="studio")return n.jsx(r1,{});if(x==="pastel")return n.jsx(c1,{});if(x==="editorial")return n.jsx(o1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(a1,{});if(g==="rooms.tabs")return n.jsx(n1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(f1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function f1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function d1(){const s=P(),r=Fe(s),o=vv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Qb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function h1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function p1(){const s=P(),r=Sv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function x1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(av()),[]),s}const g1=["봄","여름","가을","겨울"];function b1(){const s=P(),r=s.local.festivals,o=x1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=g1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Fv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function v1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:v1(s.distanceText)}function y1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=hp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Xp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:C0,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function j1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(j1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function N1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function S1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:N1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function w1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,x=o!=null&&o.length?xp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const E1={맑음:_0,흐림:r0,비:a0,눈:s0};function z1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function T1(){var v,N,w,j,k;const s=P(),r=S1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=dv((r==null?void 0:r.condition)??""),u=mv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=w1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=z1(r.observedAt),y=E1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function k1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return Ru(f!==null),M.useEffect(()=>{if(f===null)return;const g=p=>{p.key==="Escape"&&m(),p.key==="ArrowLeft"&&x(-1),p.key==="ArrowRight"&&x(1)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(gp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ty(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:ey(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(o0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Iv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Jb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function _1(){const s=P(),r=hv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===G0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(f0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const lx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(lx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function ax(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Wv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(D0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(M1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function M1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function nx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function sx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ix(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function rx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function O1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,jp=34,D1=16,Np=4;function cx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function R1(s){if(s.length<2)return 15;for(let r=D1;r>Np;r-=1){const o=s.map(d=>cx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-jp*2&&f<=Tn-jp*2)return r}return Np}function U1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!H1(f,x)?f:void 0}),f=x)}),u}function H1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function L1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function B1(s){return s.from?Pv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function q1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=U1(s,o),d=R1(f),m=L1(f.map(j=>cx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:j*Hl-p,top:k*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,k)=>{const L=m[k];return n.jsx("a",{href:B1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function $1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function G1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=lv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",$1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(q1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Y1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(X1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function X1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx(G1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Ly(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=Z0(y.url),w=K0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:F0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{N&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:J0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(S0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const V1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Z1=s=>[{id:"songs",label:"가요 다방",Component:ax,dark:!1},{id:"people",label:"인물 열전",Component:nx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:sx,dark:!1},{id:"reading",label:s,Component:ix,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:rx,dark:!1}];function K1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Z1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",V1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:g.label},g.id)})})]})}),n.jsx(lx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const J1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&J1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function F1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(Ru(f!==null),M.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?wp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const W1={songs:ax,daily:C1,people:nx,chronicle:sx,reading:ix,postcard:rx,quiz:O1,itinerary:Y1,video:Q1,event:F1,story:K1},I1="/v1/site/review",P1="/v1/site/reviews",Ep=5,zp=500;function ej(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,k=M.useCallback(async()=>{try{const Y=await fetch(`${P1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const X=await(await fetch(I1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Xp(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function tj(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",lj="#efe7d3",Tp="#bf2f1b";function ox(s=cu){return s-mt-ou-mt-24}function ux(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function aj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const nj="/v1/image/relay?url=";async function sj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${nj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ij(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function kp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ij();d.clearRect(0,0,m,m),d.fillStyle=lj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await sj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=ox(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=ux(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Ls);if(Y.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${x}`;const X=aj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const G=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,G-20),d.lineTo(m-mt,G-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,G+6),p}const _p="postcard.png";function rj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{kp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>kp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ux(Z,`“${R}”`,ox()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=_p,X.click(),URL.revokeObjectURL(Z)}async function Y(){var V,G;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],_p,{type:"image/png"});if((G=navigator.canShare)!=null&&G.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function cj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(fj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(dj,{}),n.jsx(Rn,{})]})}function fx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const oj=24,uj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function fj(){const s=P(),r=fx(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>oj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:uj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function dj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=fx(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const mj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,hj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function pj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var k;return j.enabled&&((k=j.name)==null?void 0:k.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:hj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:mj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,k)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function xj({children:s}){var N,w,j,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const gj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,bj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function vj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:bj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:gj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(m0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(Rn,{})]})}function yj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=jj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Gs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function jj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function Nj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:By,info:Vy,rooms:Io,menu:Io,programs:Io,booking:r?dp:d1,space:m1,inquiry:h1,exhibition:p1,photos:k1,festival:b1,local:y1,weather:T1,map:bp,faq:_1,...W1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Jv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(bp,{}),r&&!_v(s,"booking")&&n.jsx(dp,{}),!Lt(s,"intro")&&n.jsx(cp,{}),n.jsx(ej,{}),n.jsx(rj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(tj,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?cj:r==="oasi"?pj:r==="studio"?xj:r==="pastel"?vj:r==="editorial"?yj:Sj;return n.jsx(R0,{payload:s,children:n.jsx(o,{children:n.jsx(Nj,{})})})}function Sj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(Rn,{})]})}function wj(s){const{colors:r,look:o}=s.theme,u=nv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const Ej=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function zj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Ej.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Ap=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Tj(){return M.useEffect(()=>Uu(!0),[]),null}async function kj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(wj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=zj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Tj,{})]})),Uu(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");Ap?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Ap})})):Cp?kj(Cp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):zb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-DT_lL_bl.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,G0 as S,_j as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-DygF55RM.js b/solution/site/scripts/mockup/vendor/retired/index-DygF55RM.js new file mode 100644 index 0000000..811bfd3 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-DygF55RM.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":Sb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function kb(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new G;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(g)&&u(g),Z(O)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(g,O),j||w||(j=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=N;return function(){var ae=N;N=Q;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Lh;function Ab(){return Lh||(Lh=1,Xo.exports=_b()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function Cb(){if(Bh)return xt;Bh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function Ob(){if($h)return Ds;$h=1;var s=Ab(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Af(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return kd(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function _d(){return Je().memoizedState}function Ad(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Od(l,t,a)))}function Cd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{fm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,jm(c.current),bm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Cp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Cp("lucide",f),...!d&&!Hb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:Cp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Xh(g.now)}${g.total?` / ${Xh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},kj={PUBLISHED:3};function An(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,x,g]=Kh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=_t(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return Cn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return Cn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return Cn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return Cn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=_t(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function kv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var k;return(k=j.alt)==null?void 0:k.trim()}).sort((j,k)=>Number(k.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(k=>(k+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Ov);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const k=N.current;if(N.current=null,k===null)return;const L=j.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,k)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===g,className:`h-1.5 rounded-full bg-current transition-all ${k===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Lv),g=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!ep(x)||!ep(g)?x===g:ku(x,g)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=lp(d)&&lp(m);o[f]=x?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:k,width:L}=j;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Vp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,k,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ae(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,k=N/w;return w&&!j&&Ge(k)>.1?k:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function k(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:k,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",k=Ge(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(k/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(j),R=!k,Z=Cu(o,k);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:k}=x;return m.slice(j,k)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function N(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return x(p).map(k=>k[0]).map((k,L)=>k+g[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,k,L)=>{const H=!k,G=Cu(L,k);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((k,L)=>Ge(k)-Ge(L))[0]}function p(j){const k=s?m(j):x(j),L=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(j,k){const L=[j,j+o,j-o];if(!s)return j;if(!k)return g(L);const H=L.filter(G=>Au(G)===k);return H.length?g(H):al(L)-o}function v(j,k){const L=r[j]-f.get(),H=y(L,k);return{index:j,distance:H}}function N(j,k){const L=f.get()+j,{index:H,distance:G}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:j};const Z=r[H]-G,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return _u(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=ry(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const y=Gs(f),v=Gs(f).reverse(),N=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=j(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(y,Y);return L(W,-o,!0)}function R(){return N.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function ky(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(j&&G||!j&&!G)&&k.push(H),k},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const k=v(j);return j&&(d=k),j||(m=k),k}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=k(),N=o.map(m),w=L();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function j(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function k(H){return N?w(H,o):j(H)}return{groupSlides:k}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,O,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,N,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=_y(r,o,m,k),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,j,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:ky(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Qs(),g=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,k=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>x.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,k]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(g);le.current=g;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,M.useEffect(()=>{if(!s)return;const x=j=>{j.key==="Escape"&&m.current()},g=window.scrollY,p=document.body,y=p.style.position,v=p.style.top,N=p.style.width,w=p.style.overflow;return p.style.position="fixed",p.style.top=`-${g}px`,p.style.width="100%",p.style.overflow="hidden",window.addEventListener("keydown",x),()=>{p.style.position=y,p.style.top=v,p.style.width=N,p.style.overflow=w;const j=document.documentElement,k=j.style.scrollBehavior;j.style.scrollBehavior="auto",window.scrollTo(0,g),j.style.scrollBehavior=k,window.removeEventListener("keydown",x)}},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Qy(){var N,w;const s=P(),r=bu(s),o=An(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var k,L,H;return j.confirmed&&[(k=j.stayGuide)==null?void 0:k.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var k;return((k=j.stayGuide)==null?void 0:k.fields)??[]}),m=Xy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Gy.has(j.label)||d.some(k=>k.key===j.key&&k.group==="rules"),p=f.map(j=>{var k;return((k=j.stayGuide)==null?void 0:k.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Ky,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Jy,{text:j},j.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Vy="#16a34a",Zy="#e04b25";function Ky({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Vy:Zy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Jy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Fy="/v1/site/booking-request";function Wy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Fy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Iy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function e1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>e1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Py(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Iy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||N));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(t1,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function t1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Wy,{stay:o,guests:u})]})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function i1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function c1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(o1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function o1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(n1,{});if(x==="oasi")return n.jsx(s1,{});if(x==="studio")return n.jsx(i1,{});if(x==="pastel")return n.jsx(r1,{});if(x==="editorial")return n.jsx(c1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(l1,{});if(g==="rooms.tabs")return n.jsx(a1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(u1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function u1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function f1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function d1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function m1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function h1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function p1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const x1=["봄","여름","가을","겨울"];function g1(){const s=P(),r=s.local.festivals,o=p1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=x1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function b1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:b1(s.distanceText)}function v1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=mp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function y1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(y1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function j1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:j1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:k0,흐림:i0,비:l0,눈:n0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,N,w,j,k;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=S1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const g=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&x(-1),k.key==="ArrowRight"&&x(1)},p=window.scrollY,y=document.body,v=y.style.position,N=y.style.top,w=y.style.width,j=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",g),()=>{y.style.position=v,y.style.top=N,y.style.width=w,y.style.overflow=j,window.scrollTo(0,p),window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function k1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function _1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(tx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function A1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(C1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,O1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!U1(f,x)?f:void 0}),f=x)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function L1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:j*Hl-p,top:k*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,k)=>{const L=m[k];return n.jsx("a",{href:L1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",q1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(B1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Y1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(G1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function G1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx($1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=V0(y.url),w=Z0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{N&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function Z1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:g.label},g.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,N=v.style.position,w=v.style.top,j=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=N,v.style.top=w,v.style.width=j,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:lx,daily:A1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:M1,itinerary:Y1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",wp=5,Ep=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,k=M.useCallback(async()=>{try{const G=await fetch(`${I1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=lj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var k;return j.enabled&&((k=j.name)==null?void 0:k.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,k)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var N,w,j,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Qy,rooms:Io,menu:Io,programs:Io,booking:r?fp:f1,space:d1,inquiry:m1,exhibition:h1,photos:T1,festival:g1,local:v1,weather:z1,map:gp,faq:k1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!kv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Ru(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Ru(!0)}const Ap=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:_p})})):Ap?Tj(Ap).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-DTV-RASr.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,kj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-KDOO78WM.css b/solution/site/scripts/mockup/vendor/retired/index-KDOO78WM.css new file mode 100644 index 0000000..08a1fde --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-KDOO78WM.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-\[190px\]{flex-basis:190px}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-NVn2QSyB.js b/solution/site/scripts/mockup/vendor/retired/index-NVn2QSyB.js new file mode 100644 index 0000000..0411769 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-NVn2QSyB.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const N0="modulepreload",S0=function(s){return"/"+s},Mh={},w0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=S0(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":N0,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function E0(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function z0(){return Dh||(Dh=1,$o.exports=E0()),$o.exports}var n=z0(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function T0(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(O){if(A=!1,Z(O),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(x)&&u(x),Z(O)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(x)===null&&O===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(x,O),N||w||(N=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=j;return function(){var ae=j;j=Q;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Lh;function C0(){return Lh||(Lh=1,Xo.exports=A0()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function _0(){if(Bh)return xt;Bh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=_0(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function M0(){if($h)return Ds;$h=1;var s=C0(),r=fu(),o=k0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Cs._currentValue=ae)}var te,_e;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==_[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ux(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xx=/[\n"\\]/g;function $t(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Vx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Zx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,C[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===C.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;meme?(ye=ee,ee=null):ye=ee.sibling;var ua=k(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=C.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=C.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(j0){return t(T,j0)}),je&&Sl(T,me),ne}function He(T,z,C,B){if(typeof C=="object"&&C!==null&&C.type===A&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:e:{for(var ne=C.key;z!==null;){if(z.key===ne){if(ne=C.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,C.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===z.type){l(T,z.sibling),B=i(z,C.props),is(B,C),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}C.type===A?(B=Sa(C.props.children,T.mode,B,C.key),B.return=T,T=B):(B=hi(C.type,C.key,C.props,null,T.mode,B),is(B,C),B.return=T,T=B)}return h(T);case N:e:{for(ne=C.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===C.containerInfo&&z.stateNode.implementation===C.implementation){l(T,z.sibling),B=i(z,C.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(C,T.mode,B),B.return=T,T=B}return h(T);case W:return C=Aa(C),He(T,z,C,B)}if(ie(C))return I(T,z,C,B);if(K(C)){if(ne=K(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),se(T,z,C,B)}if(typeof C.then=="function")return He(T,z,ji(C),B);if(C.$$typeof===R)return He(T,z,gi(T,C),B);Ni(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,C),B.return=T,T=B):(l(T,z),B=ac(C,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,C,B){try{ss=0;var ne=He(T,z,C,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),_f(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,_=S.next;S.next=null,h===null?c=_:h.next=_,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=_:b.next=_,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=_=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(_=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),_=O.S;if(_!==null&&_(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=ug(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function xg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?xg:function(){return Ad(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(Cs)}function Cd(){return Je().memoizedState}function _d(){return Je().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(At(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function bg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(At(l,e,a),Od(l,t,a)))}function kd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return At(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&At(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:Ai,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=bg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=kd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Cl(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)kf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,_=b;try{_()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Qg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var _l=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function wg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,_=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++_===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var C=$.createRange();C.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(C),D.extend(z.node,z.offset)):(C.setEnd(z.node,z.offset),D.addRange(C))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{Ae=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{fm(e,t.alternate,t)}finally{Ae=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),_r(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,jm(c.current),bm(c,c.current,h,l),Ae=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(Ae&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Og(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Dg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Rg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Hg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Ug(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Zg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function l0(e){Ul.D(e),dh("dns-prefetch",e,null)}function a0(e,t){Ul.C(e,t),dh("preconnect",e,t)}function n0(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(As(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function s0(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(As(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function i0(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(_,U){S.onload=_,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function r0(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function c0(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(As(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||o0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function As(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(As(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function u0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function d0(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(m0,e),ar=null,lr.call(e))}function m0(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=M0(),Go.exports}var au=O0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=R0(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),U0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>M.createElement("svg",{ref:x,...H0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!U0(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ce=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(L0,{ref:d,iconNode:r,className:kp(`lucide-${D0(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=Ce("arrow-up-right",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],$0=Ce("bed-double",q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],G0=Ce("calendar-check",Y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Q0=Ce("calendar-days",X0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Z0=Ce("car",V0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=Ce("check",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=Ce("chevron-down",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cn=Ce("chevron-left",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=Ce("chevron-right",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P0=Ce("clock",I0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],tb=Ce("cloud-rain",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],ab=Ce("cloud-snow",lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],sb=Ce("cloud",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rb=Ce("copy",ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ob=Ce("external-link",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ub=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],fb=Ce("instagram",ub);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=Ce("mail",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=Ce("map-pin",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=Ce("menu",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=Ce("message-circle",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M5 12h14",key:"1ays0h"}]],gb=Ce("minus",xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=Ce("navigation",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],_t=Ce("phone",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jb=Ce("play",yb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sb=Ce("plus",Nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Eb=Ce("rotate-ccw",wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Tb=Ce("sun",zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ab=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Cb=Ce("utensils",Ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _b=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=Ce("x",_b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mb=Ce("youtube",kb),Dp=M.createContext(null);function Ob({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Db(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Ub(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Hb(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Lb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Bb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,g]=M.useState(!1),[x,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),j=M.useRef(null),w=M.useRef(null),N=M.useRef(null),A=r.length;M.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Db,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Ub,{}):n.jsx(Rb,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(Hb,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(Lb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Xh(x.now)}${x.total?` / ${Xh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},qb={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$b=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return $b.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Tj={PUBLISHED:3};function _n(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of _n(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?Yb(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function Yb(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Gb(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:_n(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Xb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Qb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Vb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Zb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Kb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function Jb(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Fb(s,r){const o=Xb[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:Jb(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const Wb=1260,Ib=60,Pb="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Zh(s.startTime??"")??Zh(Pb)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??Ib),x=u+m;if(x+g>Wb){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,g,x]=Kh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function lv(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??av(s)[0]}function bu(s){return _n(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=Ct(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Gb(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Fb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(_n(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=Ct(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=An(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function Av(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Bb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Cv;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Ov),[x,p]=M.useState(0),[y,v]=M.useState(!1),j=M.useRef(null),w=M.useCallback(N=>p(A=>(A+N+g.length)%g.length),[g.length]);return M.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Mv);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===x,className:`h-1.5 rounded-full bg-current transition-all ${A===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Uv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Hv),x=f?{href:f.url,label:`${An(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Yv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Gv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:g||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Yv,{});if(r==="pastel")return n.jsx(Gv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!ep(g)||!ep(x)?g===x:Au(g,x)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return Au(f,m)})}function Cu(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function sy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function iy(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=lp(d)&&lp(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:A,width:L}=N;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function _e(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",_e).add(De,"mousedown",_e).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const _e=te.nodeName||"";return X.includes(_e)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,_e){const De=v.add(_u(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(_e&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=sy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,A=j/w;return w&&!N&&Ge(A)>.1?A:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function py(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=_u(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function A(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Ra(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=ku(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=g;return m.slice(N,A)}return{snapsContained:x,scrollContainLimit:g}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Ra(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return g(p).map(A=>A[0]).map((A,L)=>A+x[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,A,L)=>{const H=!A,G=ku(L,A);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return N})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return x(L);const H=L.filter(G=>_u(G)===A);return H.length?x(H):al(L)-o}function v(N,A){const L=r[N]-f.get(),H=y(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function Ey(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Cu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return Cu(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=iy(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function zy(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function Ty(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ay(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=v(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:y,get:j}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=A(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=ku(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=Cu(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?w(H,o):N(H)}return{groupSlides:A}}function ky(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=dy(),le=W.measure(r),xe=o.map(W.measure),ce=oy(x,p),K=ce.measureSize(le),he=my(K),Xe=ry(g,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,O,f),E=_y(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=jy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=gy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=by(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=cy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,j,tt),Hn=Sy(v,oe,F,ze,Pt),Ln=wy(De,Te,at,gl,Hn,Pt,m),pt=yy(ze),Js=Qs(),Fs=Ay(r,o,m,A),{slideRegistry:Bn}=Ny(ie,G,oe,fe,E,Oe),Ba=Ey(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:uy(ce,s,u,f,Pt,fy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:xy(ze,Bt,Pt,gl,he),scrollLooper:vy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),g=Qs(),x=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,A=ce;let L=!1,H,G=p(Oy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=ky(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Oe,{loop:!1});return le(_e)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:_e})=>_e)]).forEach(_e=>g.add(_e,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const _e=E();K(),xe(p({startIndex:_e},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,_e||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,g]=M.useState(),x=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{Au(o.current,s)||(o.current=s,x())},[s,x]),M.useEffect(()=>{ny(u.current,r)||(u.current=r,x())},[r,x]),M.useEffect(()=>{if(ay()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{A(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(x);le.current=x;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return M.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function qy(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[];return r.length===0?null:n.jsx(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(o=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:o})},o.postId))})})}function $y({post:s}){const[r,o]=M.useState(!1),{month:u,day:f,weekday:d}=qy(s.publishedAt),m=By(u),g=Ly[m],x=`${u}월 ${f}일 · ${d}`;return n.jsxs(n.Fragment,{children:[n.jsxs("button",{type:"button",onClick:()=>o(!0),className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${g} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:g},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]}),n.jsx(ma,{open:r,onClose:()=>o(!1),label:`미니 블로그 · ${x}`,title:x,children:n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:s.body})})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(){var j,w;const s=P(),r=bu(s),o=_n(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Ky,{text:N},N.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,g]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=up(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>Py(s),[s]),o=M.useMemo(()=>{var K;return((K=_n(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Iy(o),[o]),[f,d]=M.useState(null),[m,g]=M.useState(0);M.useEffect(()=>d(new Date),[]);const x=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&x?Wy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=M.useState(null),[j,w]=M.useState(null),[N,A]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Q0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Cn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(P0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(gb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Sb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(Eb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),g=Sr();if(g==="reservation")return n.jsx(a1,{});if(g==="oasi")return n.jsx(n1,{});if(g==="studio")return n.jsx(s1,{});if(g==="pastel")return n.jsx(i1,{});if(g==="editorial")return n.jsx(r1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(t1,{});if(x==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(o1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(ma,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(_t,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(G0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx($0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(_t,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:_t,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=mp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:Cb,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function y1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function j1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:y1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function N1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,g=o!=null&&o.length?pp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const S1={맑음:Tb,흐림:sb,비:tb,눈:ab};function w1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function E1(){var v,j,w,N,A;const s=P(),r=j1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=N1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=w1(r.observedAt),y=S1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function z1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),g=M.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const x=A=>{A.key==="Escape"&&m(),A.key==="ArrowLeft"&&g(-1),A.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(xp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=Pv(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(rb,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Z0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function T1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===qb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(_t,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:An(u)}),n.jsx(ob,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_t,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const ex=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=M.useContext(ex),p=g==="reservation"?wu:g==="oasi"?Eu:g==="studio"?zu:g==="pastel"?Tu:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function tx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Jv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(Mb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(_1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function _1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function lx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function ax(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function nx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function sx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function k1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,M1=16,jp=4;function ix(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function O1(s){if(s.length<2)return 15;for(let r=M1;r>jp;r-=1){const o=s.map(d=>ix(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function D1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!R1(f,g)?f:void 0}),f=g)}),u}function R1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function U1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function H1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function L1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=D1(s,o),d=O1(f),m=U1(f.map(N=>ix(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+Tn)/Hl);A+=1){if(A<0||A>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:H1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function B1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function q1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=ev({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",B1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(L1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function $1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),g=M.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx(q1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=M.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=Qb(y.url),w=Vb(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Kb(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Zb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(jb,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Cn:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const X1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Q1=s=>[{id:"songs",label:"가요 다방",Component:tx,dark:!1},{id:"people",label:"인물 열전",Component:lx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:ax,dark:!1},{id:"reading",label:s,Component:nx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:sx,dark:!1}];function V1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Q1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",X1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(ex.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const Z1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Z1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function K1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,A=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=A,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Sp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ha:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const J1={songs:tx,daily:C1,people:lx,chronicle:ax,reading:nx,postcard:sx,quiz:k1,itinerary:$1,video:G1,event:K1,story:V1},F1="/v1/site/review",W1="/v1/site/reviews",wp=5,Ep=500;function I1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,g]=M.useState(""),[x,p]=M.useState(!1),[y,v]=M.useState(!1),[j,w]=M.useState(null),N=s.site.placeId,A=M.useCallback(async()=>{try{const G=await fetch(`${W1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);M.useEffect(()=>{u.current=Date.now(),A()},[A]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(F1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function P1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",ej="#efe7d3",zp="#bf2f1b";function rx(s=cu){return s-mt-ou-mt-24}function cx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function tj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const lj="/v1/image/relay?url=";async function aj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${lj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function nj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=nj();d.clearRect(0,0,m,m),d.fillStyle=ej,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await aj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ou,H=rx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=cx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${g}`;const X=tj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function sj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[g,x]=M.useState(""),[p,y]=M.useState(!1),[v,j]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",cx(Z,`“${R}”`,rx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function ij({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(oj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(uj,{}),n.jsx(Rn,{})]})}function ox(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const rj=24,cj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function oj(){const s=P(),r=ox(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>rj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:cj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function uj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ox(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:An(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:An(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const fj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,dj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function mj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:An(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function hj({children:s}){var j,w,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const pj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,xj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function gj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:xj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:pj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(_t,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(fb,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Rn,{})]})}function bj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Yp(),d=vj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function vj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function yj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?fp:u1,space:f1,inquiry:d1,exhibition:m1,photos:z1,festival:x1,local:b1,weather:E1,map:gp,faq:T1,...J1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!Tv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(I1,{}),n.jsx(sj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(P1,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?ij:r==="oasi"?mj:r==="studio"?hj:r==="pastel"?gj:r==="editorial"?bj:jj;return n.jsx(Ob,{payload:s,children:n.jsx(o,{children:n.jsx(yj,{})})})}function jj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Av,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Rn,{})]})}function Nj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const Sj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function wj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${Sj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Ej(){return M.useEffect(()=>Ru(!0),[]),null}async function zj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Nj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=wj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(Ej,{})]})),Ru(!0)}const _p=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Cp})})):_p?zj(_p).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):w0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-LY72UVMv.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,qb as S,Tj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-Q5iBYF87.js b/solution/site/scripts/mockup/vendor/retired/index-Q5iBYF87.js new file mode 100644 index 0000000..a4aa801 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-Q5iBYF87.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const jb="modulepreload",Nb=function(s){return"/"+s},kh={},Sb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Nb(p),p in kh)return;kh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":jb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Bo={exports:{}},Cs={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mh;function wb(){if(Mh)return Cs;Mh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Cs.Fragment=r,Cs.jsx=o,Cs.jsxs=o,Cs}var Oh;function Eb(){return Oh||(Oh=1,Bo.exports=wb()),Bo.exports}var n=Eb(),qo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return ue;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||j}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,M(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Ne=pe(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(M),Q=!0;break t}v===o(g)&&u(g),Z(M)}else u(g);v=o(g)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-M),Q=!1}}break e}finally{v=null,N=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||w||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(Go)),Go}var Hh;function Ab(){return Hh||(Hh=1,Yo.exports=Tb()),Yo.exports}var Xo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lh;function _b(){if(Lh)return xt;Lh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Xo.exports=_b(),Xo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return ks;qh=1;var s=Ab(),r=ou(),o=Cb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=eh(t),e=th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=th(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),zs._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Dn=s.unstable_shouldYield,Rn=s.unstable_requestPaint,pt=s.unstable_now,Ks=s.unstable_getCurrentPriorityLevel,Js=s.unstable_ImmediatePriority,Un=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Hn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Bn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Bn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Fs,wr=Math.log,Er=Math.LN2;function Fs(e){return e>>>=0,e===0?32:31-(wr(e)/Er|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Is(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function zr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ox(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var px=/[\n"\\]/g;function $t(e){return e.replace(px,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Or(e,h,qt(t)):l!=null?Or(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Zu(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){kr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),kr(e)}function Or(e,t,l){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lr=!1;if(jl)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Lr=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Lr=!1}var $l=null,Br=null,ai=null;function ef(){if(ai)return ai;var e,t=Br,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Zn),rf=" ",cf=!1;function of(e,t){switch(e){case"keyup":return Gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Qx(e,t){switch(e){case"compositionend":return uf(t);case"keypress":return t.which!==32?null:(cf=!0,rf);case"textInput":return e=t.data,e===rf&&cf?null:e;default:return null}}function Vx(e,t){if(Ja)return e==="compositionend"||!Xr&&of(e,t)?(e=ef(),ai=Br=$l=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=bf(l)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ti(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eg=jl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Kr=null,Wn=null,Jr=!1;function Nf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jr||Fa==null||Fa!==ti(a)||(a=Fa,"selectionStart"in a&&Zr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Wn&&Fn(Wn,a)||(Wn=a,a=Fi(Kr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(T,oa)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(T,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(T,ee),z=c(oa,z,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(yb){return t(T,yb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===A){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===z.type){l(T,z.sibling),B=i(z,_.props),as(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=mi(_.type,_.key,_.props,null,T.mode,B),as(B,_),B.return=T,T=B)}return h(T);case j:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=lc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,yi(_),B);if(_.$$typeof===R)return He(T,z,xi(T,_),B);ji(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=tc(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ls=0;var ne=He(T,z,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===bi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Qf(!0),Vf=Qf(!1),Vl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=di(e),_f(e,null,l),t}return fi(e,a,t,l),di(e)}function ns(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}function xc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var gc=!1;function ss(){if(gc){var e=sn;if(e!==null)throw e}}function is(e,t,l,a){gc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(gc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=v({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=$):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Kf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Uc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=og(S,a);os(e,t,U,Ht(e))}else os(e,t,a,Ht(e))}catch($){os(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function pg(){}function Dc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=zd(e).queue;Ed(e,i,t,ae,l===null?pg:function(){return Td(e),l(a)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Td(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Ht())}function Rc(){return ut(zs)}function Ad(){return Fe().memoizedState}function _d(){return Fe().memoizedState}function xg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),ns(a,t,l)),t={cache:uc()},e.payload=t;return}t=t.return}}function gg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ki(e)?kd(t,l):(l=Pr(e,t,l,a),l!==null&&(_t(l,e,a),Md(l,t,a)))}function Cd(e,t,l){var a=Ht();os(e,t,l,a)}function os(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ki(e))kd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return fi(e,t,i,0),Le===null&&ui(),!1}catch{}finally{}if(l=Pr(e,t,i,a),l!==null)return _t(l,e,a),Md(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:po(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(u(479))}else t=Pr(e,l,a,2),t!==null&&_t(t,e,2)}function ki(e){var t=e.alternate;return e===de||t!==null&&t===de}function kd(e,t){un=wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Md(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}var us={readContext:ut,use:Ti,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};us.useEffectEvent=Qe;var Od={readContext:ut,use:Ti,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:xd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_i(4194308,4,yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){_i(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=yt();return Oc(l,e,t)},useTransition:function(){var e=_c(!1);return e=Ed.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ed(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,xd(ld.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},td.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,l)),e||Xl(t,!0)}else e=Wi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ui(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&vo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ds(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>$i&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304)}else{if(!i)if(e=Si(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>$i&&l!==536870912&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ui(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ng(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),vc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function am(e,t){switch(nc(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),vc(),e!==null&&q(za);break;case 24:El(We)}}function ms(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function nm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Kf(t,l)}catch(a){Me(e,e.return,a)}}}function sm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function hs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function im(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Wc(e,t,l){try{var a=e.stateNode;Xg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,l),e=e.sibling;e!==null;)Pc(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function cm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,eo=!1,om=typeof WeakSet=="function"?WeakSet:Set,st=null;function Sg(e,t){if(e=e.containerInfo,No=nr,e=jf(e),Zr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(So={focusedElem:e,selectionRange:l},nr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=ph("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=vf(b,se),z=vf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}nr=!!No,So=No=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Um(){if(lt===2){lt=0;var e=ta,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{um(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Hm(){if(lt===4||lt===3){lt=0,Rn();var e=ta,t=gn,l=Rl,a=Sm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=ta=null,Lm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Ar(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=ro,ro=null;var c=ta,h=Rl;if(lt=0,gn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,ym(c.current),gm(c,c.current,h,l),Ae=b,ys(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,Lm(e,t)}}function qm(e,t,l){t=Gt(l,t),t=qc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(qn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)qm(e,e,l);else for(;t!==null;){if(t.tag===3){qm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=$d(2),a=Kl(t,l,2),a!==null&&(Yd(l,a,t,e),qn(a,2),fl(a));break}}t=t.return}}function fo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new zg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(ao=!0,i.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-qi?(Ae&2)===0&&bn(e,0):no|=l,xn===ve&&(xn=0)),fl(e)}function $m(e,t){t===0&&(t=Is()),e=ja(e,t),e!==null&&(qn(e,t),fl(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$m(e,l)}function Og(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),$m(e,l)}function Dg(e,t){return Pt(e,t)}var Zi=null,yn=null,mo=!1,Ki=!1,ho=!1,aa=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Zi=yn=e:yn=yn.next=e),Ki=!0,mo||(mo=!0,Ug())}function ys(e,t){if(!ho&&Ki){ho=!0;do for(var l=!1,a=Zi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Qm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Qm(a,c));a=a.next}while(l);ho=!1}}function Rg(){Ym()}function Ym(){Ki=mo=!1;var e=0;aa!==0&&Vg()&&(e=aa);for(var t=pt(),l=null,a=Zi;a!==null;){var i=a.next,c=Gm(a,t);c===0?(a.next=null,l===null?Zi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ki=!0)),a=i}lt!==0&<!==5||ys(e),aa!==0&&(aa=0)}function Gm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&Pm($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function fh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),uh.has(i)||(uh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function tb(e){Ul.D(e),fh("dns-prefetch",e,null)}function lb(e,t){Ul.C(e,t),fh("preconnect",e,t)}function ab(e,t,l){Ul.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ws(c))||t==="script"&&a.querySelector(Es(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e,t){Ul.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Es(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function sb(e,t,l){Ul.S(e,t,l);var a=jn;if(a&&e){var i=Ga(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(ws(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Co(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Pi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ib(e,t){Ul.X(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function rb(e,t){Ul.M(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&ko(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function dh(e,t,l,a){var i=(i=fe.current)?Ii(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ga(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ga(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||cb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ga(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function mh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function cb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Es(e){return"script[async]"+e}function hh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(ws(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=mh(l),(i=Jt.get(i))&&Co(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Pi(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Es(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),ko(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function ob(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ub(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(ws(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=mh(a),(i=Jt.get(i))&&Co(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=tr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Mo=0;function fb(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0Mo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(db,e),lr=null,tr.call(e))}function db(e,t){if(!(t.state.loading&4)){var l=lr.get(e);if(l)var a=l.get(null);else{l=new Map,lr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=kb(),$o.exports}var tu=Mb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ob=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Db=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Yh=s=>{const r=Db(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Rb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ub={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Ub,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!Rb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>O.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Hb,{ref:d,iconNode:r,className:kp(`lucide-${Ob(Yh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Yh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",Lb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],qb=_e("bed-double",Bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Yb=_e("calendar-check",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Xb=_e("calendar-days",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Vb=_e("car",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zn=_e("chevron-left",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ib=_e("clock",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],e0=_e("cloud-rain",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],l0=_e("cloud-snow",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],n0=_e("cloud",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i0=_e("copy",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],c0=_e("external-link",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],u0=_e("instagram",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],br=_e("map-pin",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M5 12h14",key:"1ays0h"}]],x0=_e("minus",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Qo=_e("navigation",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],y0=_e("play",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],N0=_e("plus",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],w0=_e("rotate-ccw",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],z0=_e("sun",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=_e("x",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],k0=_e("youtube",C0),Dp=O.createContext(null);function M0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function O0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function D0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function U0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Gh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function L0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[y,v]=O.useState({}),N=O.useRef(null),w=O.useRef(null),j=O.useRef(null),A=r.length;O.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(O.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(O0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(R0,{}):n.jsx(D0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(U0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(H0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Gh(g.now)}${g.total?` / ${Gh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},B0={OWNER:1,CRAWL:3,TEMPLATE:5},Xh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},q0=[Xh.VERIFIED,Xh.CORRECTED];function Rp(s){return q0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Sj={PUBLISHED:3};function Tn(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?$0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function $0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const G0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function X0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Q0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function V0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Z0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const fr={items:[],unverified:0,sourced:0};function K0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function J0(s,r){const o=G0[s],u=(r??"").trim();if(!o||!u)return fr;let f;try{f=JSON.parse(u)}catch(v){return{...fr,error:K0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...fr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...fr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const F0=1260,W0=60,I0="10:00",Qh=["봄","여름","가을","겨울"];function Vh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function dr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function P0(s){const r=Vh(s.startTime??"")??Vh(I0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??W0),g=u+m;if(g+x>F0){f+=1;continue}o.push({stop:d,time:dr(g),until:dr(g+x),move:m}),u=g+x}return{stops:o,from:dr(r),to:dr(u),totalMinutes:u-r,dropped:f}}function ev(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Qh[o];return r%3===0&&s.getDate()<=15?[Qh[(o+3)%4],u]:[u]}function Zh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Kh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Zh(s),[m,x,g]=Zh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function tv(s){return{surface:Kh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Kh(s.bg,s.text,.2)}}const Hp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function lv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Jh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function av(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Jh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Jh.includes(f.channel)&&!av(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??lv(s)[0]}function xu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const nv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function sv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:sv(u.facts.filter(m=>!nv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:iv(u),prices:cv(u),href:`/${r.path}/${u.slug}`}})}function iv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const rv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function cv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?rv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function ov(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function uv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function fv(s){return Y0(s.faqs)}function dv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function mv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=J0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function hv(s,r){return An(s,[r])[0]}const pv=["reservation_required","reservation_channel"];function xv(s){return An(s,pv)}const gv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function bv(s){return An(s,gv)}const vv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function yv(s){return An(s,vv)}const jv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return An(s,jv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Bp,wv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Ev(s){return hu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function $p(s){if(s.place.category!==da.LODGING)return null;const r={offers:Ev(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,wv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function zv(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Sv(s,Nv)}function gt(s,r){const o=Bs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function vu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function Tv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(L0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(O.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function yr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return Cv(s).join(" ")}function Cv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const y=ua(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const kv=6e3,Mv=5;function Ov(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var A;return(A=j.alt)==null?void 0:A.trim()}).sort((j,A)=>Number(A.isPrimary)-Number(j.isPrimary)).slice(0,Mv),[g,p]=O.useState(0),[y,v]=O.useState(!1),N=O.useRef(null),w=O.useCallback(j=>p(A=>(A+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),kv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const A=N.current;if(N.current=null,A===null)return;const L=j.changedTouches[0].clientX-A;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,A)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Fh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Fh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Fh({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=_n(s),d=Ke(s),m=hv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Rv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Rv[s??""]??"default"}function jr(){return Yp(P().theme.templateId)}const pr=5,lu=1.8,Uv=3;function Hv(s){const r=s*pr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(pr)} { opacity: 1; } + ${o(pr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Lv(s,r){return((r-s)%r*pr+lu).toFixed(1)}function Bv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Uv),g=f?{href:f.url,label:`${Bs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Hv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function $v(){const s=P(),r=bu(s),o=yr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const qs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Gv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Xv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Wh(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of dv(s)){const m=Gv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Wh(u.length+1),label:x||Xv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Wh(u.length+1),label:"오시는 길",anchor:"location"}),u}function yu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=yr(s),f=ht(s),d=hl(s),m=Ua(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:qs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Vv(){var g;const s=P(),r=jr();if(r==="reservation")return n.jsx(Bv,{});if(r==="oasi")return n.jsx(qv,{});if(r==="studio")return n.jsx($v,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Qv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Ov,{});if(o==="hero.split")return n.jsx(Dv,{});const{place:u,narrative:f}=s,d=yr(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(br,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function ju(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Vs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Zv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ih(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Kv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Nu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Jv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Nu(s))},${r},${o}`}function Fv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Nu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Nu(s))}/-/transit`}function Wv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Iv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Su({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const Pv={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=jr(),y=p==="reservation"?Su:p==="oasi"?wu:p==="studio"?Eu:p==="pastel"?zu:p==="editorial"?yu:ey;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...Pv[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ey({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ty(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ph(s){return ty(s)||Array.isArray(s)}function ly(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!Ph(x)||!Ph(g)?x===g:Tu(x,g)})}function ep(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ay(s,r){if(s.length!==r.length)return!1;const o=ep(s),u=ep(r);return o.every((f,d)=>{const m=u[d];return Tu(f,m)})}function Au(s){return typeof s=="number"}function au(s){return typeof s=="string"}function Nr(s){return typeof s=="boolean"}function tp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Us(s,r){return Ge(s-r)}function ny(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Us(Ge(s),Ge(r));return Ge(o/s)}function sy(s){return Math.round(s*100)/100}function $s(s){return Ys(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function lp(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=tp(d)&&tp(m);o[f]=x?Qp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function iy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Gs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function ry(s,r,o,u){const f=Gs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function cy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:A,width:L}=j;return u?A:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Vp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function oy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Gs(),W=Gs(),le=Da(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(Nr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=v.add(_u(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),Nt=Us(De,Xe),It=Us(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=ny(tt,Nt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:E,pointerDown:at}}function uy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(nu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,A=N/w;return w&&!j&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function fy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function dy(s){function r(u){return s*(u/100)}return{measure:r}}function my(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(Nr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function hy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,y+=m,s.add(m),W=y-v),x=_u(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function py(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",A=Ge(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(j),R=!A,Z=Cu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:A}=x;return m.slice(j,A)}return{snapsContained:g,scrollContainLimit:x}}function gy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function by(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function vy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function yy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function N(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function w(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:y}}function jy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,A,L)=>{const H=!A,G=Cu(L,A);if(H){const R=al(L[0])+1;return lp(R)}if(G){const R=Zs(d)-al(L)[0]+1;return lp(R,al(L)[0])}return j})}return{slideRegistry:p}}function Ny(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(j){const A=s?m(j):x(j),L=r.map((G,R)=>({diff:y(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function y(j,A){const L=[j,j+o,j-o];if(!s)return j;if(!A)return g(L);const H=L.filter(G=>_u(G)===A);return H.length?g(H):al(L)-o}function v(j,A){const L=r[j]-f.get(),H=y(L,A);return{index:j,distance:H}}function N(j,A){const L=f.get()+j,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:j};const Z=r[H]-G,X=j+y(Z,0);return{index:H,distance:X}}return{byDistance:N,byIndex:v,shortcut:y}}function Sy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function wy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Au(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(Nr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Os(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=sy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function Ey(s,r,o,u,f,d,m,x,g){const y=$s(f),v=$s(f).reverse(),N=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Os(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=j(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(y,Y);return L(W,-o,!0)}function R(){return N.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:N}}function zy(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(Nr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ty(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(j&&G||!j&&!G)&&A.push(H),A},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const A=v(j);return j&&(d=A),j||(m=A),A}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=A(),N=o.map(m),w=L();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?N[R]+y:V?N[R]+v:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function _y(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=Au(o);function w(H,G){return $s(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function j(H){return H.length?$s(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return N?w(H,o):j(H)}return{groupSlides:A}}function Cy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=fy(),le=W.measure(r),xe=o.map(W.measure),ce=cy(g,p),K=ce.measureSize(le),he=dy(K),Xe=iy(x,K),ie=!v&&!!G,M=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,M,f),E=_y(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=yy(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=xy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=gy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=$s(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Bn,options:{loop:sl}})=>{sl||Bn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Bn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:wr,animation:Er,eventHandler:Fs,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=bl.settled(),Ba=!La.shouldConstrain(),Bl=pa?rl:rl&&Ba,Ws=Bl&&!wr.pointerDown();Ws&&Er.stop();const Is=Bn.get()*xa+bt.get()*(1-xa);sl.set(Is),pa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Ws&&Fs.emit("settle"),Bl||Fs.emit("scroll")},De=ry(u,f,()=>te(Hn),bl=>Ce(Hn,bl)),tt=.68,Nt=oe[Te.get()],It=Os(Nt),nl=Os(Nt),Bt=Os(Nt),Pt=Os(Nt),gl=hy(It,Bt,nl,Pt,N,tt),Dn=Ny(v,oe,F,ze,Pt),Rn=Sy(De,Te,at,gl,Dn,Pt,m),pt=vy(ze),Ks=Gs(),Js=Ty(r,o,m,A),{slideRegistry:Un}=jy(ie,G,oe,fe,E,Oe),Ha=wy(s,o,Un,Rn,gl,Ks,m,V),Hn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:oy(ce,s,u,f,Pt,uy(ce,f),It,De,Rn,gl,Dn,Te,m,he,w,j,H,tt,X),eventStore:Ks,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:my(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:py(ze,Bt,Pt,gl,he),scrollLooper:by(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Dn,scrollTo:Rn,slideLooper:Ey(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:zy(r,m,Z),slidesInView:Js,slideIndexes:Oe,slideRegistry:Un,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return Hn}function ky(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const My={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Oy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Dy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function gr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Oy(f),m=Dy(d),x=Gs(),g=ky(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,A=ce;let L=!1,H,G=p(My,gr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Cy(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=E();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}gr.globalOptions=void 0;function ku(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Tu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{ay(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ly()&&m){gr.globalOptions=ku.globalOptions;const p=gr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}ku.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ry(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function kn({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=ku({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,A]=O.useState([]),[L,H]=O.useState(0),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},M=()=>{A(w.scrollSnapList()),ie()};return M(),w.on("select",ie),w.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",M)}},[w]),O.useEffect(()=>{if(!w)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",M),w.on("pointerUp",Q),()=>{w.off("pointerDown",M),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=O.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=O.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=O.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(ap,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ap,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Sr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function ap({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Mu({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ou({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Fp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function sp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Wp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Xs({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return O.useEffect(()=>{if(!s)return;const m=g=>{g.key==="Escape"&&r()},x=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",m),()=>{document.body.style.overflow=x,window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(vr,{className:"size-5"})})]}),f]})]}):null}function Uy(){const s=P(),{narrative:r,place:o}=s,u=mv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const ip=10;function rp(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/ip);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/ip)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Vo=s=>!s.note&&Hy.has(s.value.trim()),Ly=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function By(){var N,w;const s=P(),r=xu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||_v(s),f=s.links.filter(j=>{var A,L,H;return j.confirmed&&[(A=j.stayGuide)==null?void 0:A.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var A;return((A=j.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Vo(j)?!1:Ly.has(j.label)||d.some(A=>A.key===j.key&&A.group==="rules"),p=f.map(j=>{var A;return((A=j.stayGuide)==null?void 0:A.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(j=>!Vo(j)),children:n.jsx(Yy,{rows:v.filter(Vo)})}),p.map(j=>n.jsx(Gy,{text:j},j.slice(0,32))),n.jsx(Xy,{})]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Zo=new Set(["가능","있음"]),qy="#16a34a",$y="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Zo.has(u.value))-Number(Zo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Zo.has(o.value),f=u?qy:$y;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(vr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Gy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Xy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ms,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ms,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ms,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ms,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ms,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ms({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Ko=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Jo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ip(){var ce;const s=P(),r=O.useMemo(()=>Jy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Ky(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=O.useState(null),[N,w]=O.useState(null),[j,A]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=O.useState(2),[G,R]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||N));return O.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Xb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Jo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Ko[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Jo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(zn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Ko.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Ib,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(x0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(N0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Jo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(w0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:qs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(yu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Fo(){var v;const s=P(),r=ht(s),o=$p(s),[u,f]=O.useState(null),[d,m]=O.useState(!1),x=jr();if(x==="reservation")return n.jsx(Py,{});if(x==="oasi")return n.jsx(e1,{});if(x==="studio")return n.jsx(t1,{});if(x==="pastel")return n.jsx(l1,{});if(x==="editorial")return n.jsx(a1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(Wy,{});if(g==="rooms.tabs")return n.jsx(Iy,{});const p=hl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Mu,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(s1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Ou,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(Xs,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:vu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(Xs,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Ip,{})})]})}function s1({images:s,name:r}){return n.jsx(kn,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Sr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Ke(s),o=xv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Fp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(sp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(sp,{href:f.url,variant:"outline",external:!0,children:vu(f)},f.url))]})})]})})}function fp(){const s=P(),r=$p(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Yb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(qb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:vu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ip,{})]})})}function r1(){const s=P(),r=bv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Mu,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Fp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(ev()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=f1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(kn,{label:r,children:s.map(d=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Xs,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Zv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Hs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Hs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Hs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Hs}];function mr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Hs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(fa(N))).length,g=mp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??mp[0],y=v=>p.test(fa(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[ju(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Hs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:br,places:r.attractions,within:y})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(kn,{label:s,children:f.map(x=>n.jsx(Sr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[mr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Xs,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[mr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ih(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ih(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,mr(fa(x))&&` · ${mr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:x1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:z0,흐림:n0,비:e0,눈:l0};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var v,N,w,j,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=ov((r==null?void 0:r.condition)??""),u=uv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=b1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),y=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Mu,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]),x=O.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const g=y=>{y.key==="Escape"&&m(),y.key==="ArrowLeft"&&x(-1),y.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(kn,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Sr,{basis:"basis-full",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(hr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(vr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function hr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Iv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Wv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(i0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Jv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Qo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function S1(){const s=P(),r=fv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===B0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Wp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(br,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(c0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function Mn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(br,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=jr(),g=x==="reservation"?Su:x==="oasi"?wu:x==="studio"?Eu:x==="pastel"?zu:x==="editorial"?yu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function On({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(kn,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Qs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function ex(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Kv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(k0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Qs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(z1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function tx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Qs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Qs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(On,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function lx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(On,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ax(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(On,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function nx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Qs(r.items.length,r.unverified,"장"),children:n.jsx(On,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(On,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Ds=318,En=168,yp=34,A1=16,jp=4;function sx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>jp;r-=1){const o=s.map(d=>sx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ds-yp*2&&f<=En-yp*2)return r}return jp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Fv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(j=>sx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Ds/2,y=g-En/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Ds)/Hl);j+=1)for(let A=Math.floor(y/Hl);A<=Math.floor((y+En)/Hl);A+=1){if(A<0||A>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:j*Hl-p,top:A*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ds,height:En,viewBox:`0 0 ${Ds} ${En}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,A)=>{const L=m[A];return n.jsx("a",{href:O1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=P0({name:s.name,startTime:o,stops:u}),[p,y]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...x?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",R1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(D1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function H1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Wo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(L1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function L1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=su(y).length,{item:y,start:v}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(On,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=su(p);return v.map((N,w)=>n.jsx(U1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Ry(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=X0(y.url),w=Q0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:Z0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{N&&(A.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:V0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(y0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(ml,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},$1=s=>[{id:"songs",label:"가요 다방",Component:ex},{id:"people",label:"인물 열전",Component:tx},{id:"chronicle",label:"시간의 골목",Component:lx},{id:"reading",label:s,Component:ax},{id:"postcard",label:"오늘의 엽서",Component:nx}];function Y1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=$1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const G1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&G1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function X1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=v=>{v.key==="Escape"&&m()},y=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=y,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Wp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,N=Io(p,v),w=Po(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ma:dl,borderColor:v==="open"&&N!=="공지"?Ze:Se},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Q1={songs:ex,daily:E1,people:tx,chronicle:lx,reading:ax,postcard:nx,quiz:T1,itinerary:H1,video:B1,event:X1,story:Y1},V1="/v1/site/review",Z1="/v1/site/reviews",wp=5,Ep=500;function K1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[y,v]=O.useState(!1),[N,w]=O.useState(null),j=s.site.placeId,A=O.useCallback(async()=>{try{const G=await fetch(`${Z1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),A()},[A]),O.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(V1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),v(!1),await A())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Xs,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function J1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Rs=4,mt=56,ru=190,eu="#1b1a15",F1="#efe7d3",zp="#bf2f1b";function ix(s=iu){return s-mt-ru-mt-24}function rx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function W1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const I1="/v1/image/relay?url=";async function P1(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${I1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function ej(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=ej();d.clearRect(0,0,m,m),d.fillStyle=F1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await P1(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const A=mt+v+36,L=m-mt-ru,H=ix(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=rx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Rs);if(G.length>Rs){let W=R[Rs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Rs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=W1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function tj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,y]=O.useState(!1),[v,N]=O.useState(!0);O.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,w,j,r]),O.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",rx(Z,`“${R}”`,ix()).length<=Rs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(kn,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function lj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(sj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ij,{}),n.jsx(Mn,{})]})}function cx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const aj=24,nj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function sj(){const s=P(),r=cx(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>aj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:nj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function ij(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=cx(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Bs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Bs(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Vs(o.updatedAt)})]})]})]})})}const rj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,cj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function oj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ua(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var A;return j.enabled&&((A=j.name)==null?void 0:A.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:cj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:rj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,A)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Bs(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Vs(r.site.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function uj({children:s}){var N,w,j,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=Ua(r),g=Ke(r)[0],p=pu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Vs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Mn,{})]})}const fj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,dj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function mj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:dj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:fj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(u0,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Mn,{})]})}function hj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Gp(),d=pj(f),m=Ke(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:qs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Vs(u.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function pj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function xj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Uy,info:By,rooms:Fo,menu:Fo,programs:Fo,booking:r?fp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:gp,faq:S1,...Q1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Vv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!zv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(K1,{}),n.jsx(tj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(J1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?lj:r==="oasi"?oj:r==="studio"?uj:r==="pastel"?mj:r==="editorial"?hj:gj;return n.jsx(M0,{payload:s,children:n.jsx(o,{children:n.jsx(xj,{})})})}function gj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Tv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Mn,{})]})}function bj(s){const{colors:r,look:o}=s.theme,u=tv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const vj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function yj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${vj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const xr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Du(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function jj(){return O.useEffect(()=>Du(!0),[]),null}async function Nj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(bj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=yj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(xr).render(n.jsxs(O.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(jj,{})]})),Du(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?tu.hydrateRoot(xr,n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:_p})})):Cp?Nj(Cp).catch(s=>{xr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Du(!1)}):Sb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-keLyYLyY.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(xr).render(n.jsx(O.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Xh as F,it as L,da as P,B0 as S,Sj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-Sz2NatL3.js b/solution/site/scripts/mockup/vendor/retired/index-Sz2NatL3.js new file mode 100644 index 0000000..9b2b69d --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-Sz2NatL3.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Sb,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rh;function kb(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(x)&&u(x),Z(O)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(x)===null&&O===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(x,O),N||w||(N=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=j;return function(){var ae=j;j=Q;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Lh;function Ab(){return Lh||(Lh=1,Xo.exports=_b()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bh;function Cb(){if(Bh)return xt;Bh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function Ob(){if($h)return Ds;$h=1;var s=Ab(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Af(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return kd(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function _d(){return Je().memoizedState}function Ad(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Od(l,t,a)))}function Cd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{fm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,jm(c.current),bm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Cp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>M.createElement("svg",{ref:x,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Cp("lucide",f),...!d&&!Hb(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:Cp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,g]=M.useState(!1),[x,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),j=M.useRef(null),w=M.useRef(null),N=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>g(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Xh(x.now)}${x.total?` / ${Xh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},kj={PUBLISHED:3};function An(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` +`).length,N=v-j.lastIndexOf(` +`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["봄","여름","가을","겨울"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??P0),x=u+m;if(x+g>I0){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,g,x]=Kh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=_t(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:_t(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return Cn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return Cn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return Cn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return Cn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=_t(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function kv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=kn(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`영업시간 ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("반려동물 동반 불가."),x==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var k;return(k=N.alt)==null?void 0:k.trim()}).sort((N,k)=>Number(k.isPrimary)-Number(N.isPrimary)).slice(0,Dv),[x,p]=M.useState(0),[y,v]=M.useState(!1),j=M.useRef(null),w=M.useCallback(N=>p(k=>(k+N+g.length)%g.length),[g.length]);return M.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Ov);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const k=j.current;if(j.current=null,k===null)return;const L=N.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,k)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}번째 사진`,"aria-current":k===x,className:`h-1.5 rounded-full bg-current transition-all ${k===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Lv),x=f?{href:f.url,label:`${kn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:g||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!ep(g)||!ep(x)?g===x:ku(g,x)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=lp(d)&&lp(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:k,width:L}=N;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,k,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ae(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,k=j/w;return w&&!N&&Ge(k)>.1?k:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function xy(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function k(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:k,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Ra(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",k=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(k/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!k,Z=Cu(o,k);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:k}=g;return m.slice(N,k)}return{snapsContained:x,scrollContainLimit:g}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Ra(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function j(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return g(p).map(k=>k[0]).map((k,L)=>k+x[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,k,L)=>{const H=!k,G=Cu(L,k);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return N})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((k,L)=>Ge(k)-Ge(L))[0]}function p(N){const k=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(N,k){const L=[N,N+o,N-o];if(!s)return N;if(!k)return x(L);const H=L.filter(G=>Au(G)===k);return H.length?x(H):al(L)-o}function v(N,k){const L=r[N]-f.get(),H=y(L,k);return{index:N,distance:H}}function j(N,k){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function zy(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return _u(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=ry(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function Ty(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function ky(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&k.push(H),k},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const k=v(N);return N&&(d=k),N||(m=k),k}return{init:p,destroy:y,get:j}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=k(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function k(H){return j?w(H,o):N(H)}return{groupSlides:k}}function My(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(x,p),K=ce.measureSize(le),he=hy(K),Xe=cy(g,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,O,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,j,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=_y(r,o,m,k),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:ky(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),g=Qs(),x=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,k=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>g.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,g]=M.useState(),x=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,x())},[s,x]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,x())},[r,x]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,k]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(x);le.current=x;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return M.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(g=>g.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(g=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:g,onOpen:()=>u(g.postId)})},g.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],g=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:g}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Xy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Qy(){var j,w;const s=P(),r=bu(s),o=An(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var k,L,H;return N.confirmed&&[(k=N.stayGuide)==null?void 0:k.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var k;return((k=N.stayGuide)==null?void 0:k.fields)??[]}),m=Xy([...r]),g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(k=>k.key===N.key&&k.group==="rules"),p=f.map(N=>{var k;return((k=N.stayGuide)==null?void 0:k.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:v.filter(N=>!Ko(N)),children:n.jsx(Ky,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Jy,{text:N},N.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Vy="#16a34a",Zy="#e04b25";function Ky({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Vy:Zy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Jy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Fy="/v1/site/booking-request";function Wy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,g]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Fy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Iy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=up(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function e1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>e1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Py(o),[o]),[f,d]=M.useState(null),[m,g]=M.useState(0);M.useEffect(()=>d(new Date),[]);const x=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&x?Iy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=M.useState(null),[j,w]=M.useState(null),[N,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(t1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${x.getMonth()+1}월 ${V.day}일(${Fo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Wo(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"년 ",x.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}월 ${V.day}일 · ${Y?Wo(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function t1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Wy,{stay:o,guests:u})]})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function i1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function c1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(o1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function o1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),g=Sr();if(g==="reservation")return n.jsx(n1,{});if(g==="oasi")return n.jsx(s1,{});if(g==="studio")return n.jsx(i1,{});if(g==="pastel")return n.jsx(r1,{});if(g==="editorial")return n.jsx(c1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(l1,{});if(x==="rooms.tabs")return n.jsx(a1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(u1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(ma,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} 상세 · 예약`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function u1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function f1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function d1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function m1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function h1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function p1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const x1=["봄","여름","가을","겨울"];function g1(){const s=P(),r=s.local.festivals,o=p1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=x1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="전체",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",g," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:j,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function b1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:b1(s.distanceText)}function v1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=mp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function y1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(y1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` · ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function j1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:j1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,g=o!=null&&o.length?pp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:k0,흐림:i0,비:l0,눈:n0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,j,w,N,k;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=S1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),g=M.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const x=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&g(-1),k.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(xp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=ey(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function k1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function _1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=M.useContext(tx),p=g==="reservation"?wu:g==="oasi"?Eu:g==="studio"?zu:g==="pastel"?Tu:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`작사 ${x.lyricist??"미상"} / 작곡 ${x.composer??"미상"}`:void 0,x.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Fv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function A1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(C1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}번 문제 ${g?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,O1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!U1(f,g)?f:void 0}),f=g)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function L1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(N=>rx(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:N*Hl-p,top:k*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,k)=>{const L=m[k];return n.jsx("a",{href:L1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"–",x.to," · ",q1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",x.from]})]}),p&&n.jsx(B1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function Y1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(G1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function G1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),g=M.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx($1,{item:p,badge:j.label??p.duration??`${w+1}일차`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=M.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=V0(y.url),w=Z0(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:J0(j),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{j&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:K0(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:lx,dark:!1},{id:"people",label:"인물 열전",Component:ax,dark:!0},{id:"chronicle",label:"시간의 골목",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:ix,dark:!1}];function Z1(){var g;const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Sp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="공지"?Ze:Ft,color:v==="open"&&j!=="공지"?ha:ml,borderColor:v==="open"&&j!=="공지"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:lx,daily:A1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:M1,itinerary:Y1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",wp=5,Ep=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,g]=M.useState(""),[x,p]=M.useState(!1),[y,v]=M.useState(!1),[j,w]=M.useState(null),N=s.site.placeId,k=M.useCallback(async()=>{try{const G=await fetch(`${I1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>g(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("郵票",Z,k+46),d.fillText("10원",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${g}`;const X=lj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[g,x]=M.useState(""),[p,y]=M.useState(!1),[v,j]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${R}”`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Z}).catch(()=>{}),x('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),x("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var k;return N.enabled&&((k=N.name)==null?void 0:k.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,k)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var j,w,N,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Qy,rooms:Io,menu:Io,programs:Io,booking:r?fp:f1,space:d1,inquiry:m1,exhibition:h1,photos:T1,festival:g1,local:v1,weather:z1,map:gp,faq:k1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!kv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Ru(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Ru(!0)}const Ap=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:_p})})):Ap?Tj(Ap).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CxhTmtlu.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,kj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-WhtqV4vp.css b/solution/site/scripts/mockup/vendor/retired/index-WhtqV4vp.css new file mode 100644 index 0000000..95e8e8c --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-WhtqV4vp.css @@ -0,0 +1 @@ +#w4d-mini{display:inline-flex;align-items:center;gap:2px;margin-right:6px;padding-right:8px;border-right:1px solid var(--tpl-border, #bcb49e)}#w4d-mini button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--tpl-text, #1b1a15);background:transparent;border:0;border-radius:var(--tpl-radius, 0);cursor:pointer;opacity:.75}#w4d-mini button:hover{opacity:1;background:#1b1a150f}#w4d-mini svg{width:16px;height:16px}#w4d-now{max-width:150px;overflow:hidden;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:var(--tpl-accent, #bf2f1b);padding-right:2px}#w4d-mini[data-playing="0"] #w4d-now{opacity:.55;font-weight:400}@media(max-width:860px){#w4d-now{display:none}}#w4d-tape{display:inline-flex;align-items:center;padding:0 4px 0 2px;color:var(--tpl-text, #1b1a15);opacity:.8}#w4d-tape svg{width:20px;height:20px}#w4d-mini[data-playing="1"] #w4d-tape{color:var(--tpl-accent, #bf2f1b);opacity:1}#w4d-mini[data-playing="1"] .w4d-reel{transform-box:fill-box;transform-origin:center;animation:w4d-reel 2.6s linear infinite}@keyframes w4d-reel{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.w4d-reel{animation:none!important}}#w4d-mini button[data-playing="1"]{color:var(--tpl-accent, #bf2f1b);opacity:1}@media(max-width:400px){#w4d-mini{margin-right:2px;padding-right:4px}#w4d-mini button{width:27px;height:27px}}#w4d-panel{position:fixed;z-index:45;width:344px;max-width:calc(100vw - 16px);max-height:min(64vh,520px);display:flex;flex-direction:column;overflow:hidden;font-family:var(--tpl-font-body, serif);color:var(--tpl-text, #1b1a15);background:var(--tpl-card, #efe7d3);border:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15);box-shadow:var(--tpl-shadow, 4px 4px 0 rgb(27 26 21 / .16))}#w4d-panel[hidden]{display:none}@media(max-width:640px){#w4d-panel{width:auto}}#w4d-panel .w4d-head{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:11px 8px 11px 14px;border-bottom:var(--tpl-border-width, 2px) solid var(--tpl-primary, #1b1a15)}.w4d-head-t{font-size:12px;font-weight:700;letter-spacing:.06em}.w4d-head-n{flex:1 1 auto;font-size:11px;opacity:.5}#w4d-panel .w4d-head button{display:inline-flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;background:transparent;border:0;cursor:pointer;opacity:.6}#w4d-panel .w4d-head button:hover{opacity:1}#w4d-panel .w4d-head svg{width:14px;height:14px}#w4d-panel ol{flex:1 1 auto;margin:0;padding:4px 0;overflow-y:auto;list-style:none;-webkit-overflow-scrolling:touch}.w4d-item{display:flex;width:100%;min-height:52px;align-items:center;gap:11px;padding:8px 14px;color:inherit;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.w4d-item+.w4d-item{border-top:1px dashed var(--tpl-border, #bcb49e)}.w4d-item:hover{background:#1b1a150d}.w4d-item[aria-current=true]{background:#1b1a150f}.w4d-item[aria-current=true] .w4d-t{color:var(--tpl-accent, #bf2f1b)}.w4d-mark{position:relative;flex:0 0 26px;height:26px}.w4d-disc-sm{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--w4d-lbl, #bf2f1b) 0 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,rgb(255 255 255 / .12) 0 1px,transparent 1px 3px),#14110f}.w4d-disc-sm:after{content:"";position:absolute;top:45%;right:45%;bottom:45%;left:45%;border-radius:50%;background:var(--tpl-card, #efe7d3)}.w4d-eq{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:4px}.w4d-eq i{width:3px;height:6px;background:var(--tpl-accent, #bf2f1b);animation:w4d-eq .9s ease-in-out infinite}.w4d-eq i:nth-child(2){animation-delay:.18s}.w4d-eq i:nth-child(3){animation-delay:.36s}@keyframes w4d-eq{0%,to{height:5px}50%{height:17px}}.w4d-item[data-playing="1"] .w4d-disc-sm{display:none}.w4d-item[data-playing="1"] .w4d-eq{display:flex}@media(prefers-reduced-motion:reduce){.w4d-eq i{animation:none;height:11px}}.w4d-info{min-width:0;flex:1 1 auto}.w4d-t{display:block;overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.w4d-sub{display:block;margin-top:2px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;opacity:.55}.w4d-time{flex:0 0 auto;font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}#w4d-lyrics-box{padding:10px 12px 14px;border-top:1px dashed var(--tpl-border, #bcb49e);white-space:pre-line;font-size:12px;line-height:1.9;overflow-y:auto}#w4d-lyrics-box[hidden]{display:none}.hero-catchphrase,.hero-catchphrase-fixed{display:block}.hero-catchphrase .w4d-line{display:block;margin-top:.5rem;min-height:1.5em;word-break:keep-all}.hero-catchphrase .w4d-w{display:inline-block;overflow:hidden;vertical-align:bottom}.hero-catchphrase .w4d-w>span{display:inline-block;animation:lodging-word-in .45s both;animation-delay:var(--w4d-d)}@keyframes lodging-word-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hero-catchphrase .w4d-w>span{animation:none}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--font-serif:"Noto Serif KR", "Batang", "Times New Roman", serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:oklch(14.1% .005 285.823);--color-stone-600:oklch(44.4% .011 73.639);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-sm:8px;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--color-brand:var(--tpl-primary);--color-surface:var(--tpl-bg);--color-surface-alt:var(--tpl-card);--color-ink:var(--tpl-text);--color-accent:var(--tpl-accent);--color-line:currentColor}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-line:color-mix(in oklab, currentColor 14%, transparent)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.inset-y-\[3px\]{inset-block:3px}.-top-1{top:calc(var(--spacing) * -1)}.-top-2{top:calc(var(--spacing) * -2)}.-top-\[5px\]{top:-5px}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-14{top:calc(var(--spacing) * 14)}.top-\[calc\(100\%\+0\.5rem\)\]{top:calc(100% + .5rem)}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.-right-10{right:calc(var(--spacing) * -10)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.5{bottom:calc(var(--spacing) * 2.5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-full{left:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-12{grid-column:span 12/span 12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.ms-auto{margin-inline-start:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-4{margin-left:calc(var(--spacing) * -4)}.-ml-10{margin-left:calc(var(--spacing) * -10)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-\[9\]{-webkit-line-clamp:9;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/2{aspect-ratio:3/2}.aspect-3\/4{aspect-ratio:3/4}.aspect-4\/3{aspect-ratio:4/3}.aspect-16\/10{aspect-ratio:16/10}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.size-0{width:0;height:0}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-64{width:calc(var(--spacing) * 64);height:calc(var(--spacing) * 64)}.size-\[9px\]{width:9px;height:9px}.size-\[17px\]{width:17px;height:17px}.size-\[22px\]{width:22px;height:22px}.size-\[54px\]{width:54px;height:54px}.size-\[76px\]{width:76px;height:76px}.size-\[220px\]{width:220px;height:220px}.size-full{width:100%;height:100%}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-9{height:calc(var(--spacing) * 9)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-48{height:calc(var(--spacing) * 48)}.h-100{height:calc(var(--spacing) * 100)}.h-\[1em\]{height:1em}.h-\[6px\]{height:6px}.h-\[22px\]{height:22px}.h-\[56px\]{height:56px}.h-\[260px\]{height:260px}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-\[clamp\(15rem\,24vw\,21rem\)\]{height:clamp(15rem,24vw,21rem)}.h-\[clamp\(17rem\,27vw\,24rem\)\]{height:clamp(17rem,27vw,24rem)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[26rem\]{max-height:26rem}.max-h-\[46vh\]{max-height:46vh}.max-h-\[72vh\]{max-height:72vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[88svh\]{max-height:88svh}.max-h-\[88vh\]{max-height:88vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-\[2rem\]{min-height:2rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-\[3px\]{width:3px}.w-\[44px\]{width:44px}.w-\[62px\]{width:62px}.w-\[86\%\]{width:86%}.w-\[110px\]{width:110px}.w-\[168px\]{width:168px}.w-\[210px\]{width:210px}.w-\[228px\]{width:228px}.w-\[254px\]{width:254px}.w-\[262px\]{width:262px}.w-\[304px\]{width:304px}.w-\[320px\]{width:320px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[34rem\]{max-width:34rem}.max-w-\[72rem\]{max-width:72rem}.max-w-\[360px\]{max-width:360px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-\[22px\]{min-width:22px}.min-w-\[34rem\]{min-width:34rem}.flex-1{flex:1}.flex-\[1\.4\]{flex:1.4}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-\[46\%\]{flex-basis:46%}.basis-\[76\%\]{flex-basis:76%}.basis-\[86\%\]{flex-basis:86%}.basis-\[150px\]{flex-basis:150px}.basis-\[190px\]{flex-basis:190px}.basis-\[225px\]{flex-basis:225px}.basis-full{flex-basis:100%}.origin-right{transform-origin:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-6{rotate:-6deg}.rotate-6{rotate:6deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.\[touch-action\:pan-y_pinch-zoom\]{touch-action:pan-y pinch-zoom}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-center{scroll-snap-align:center}.snap-start{scroll-snap-align:start}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.columns-1{columns:1}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[46px_minmax\(0\,1fr\)\]{grid-template-columns:46px minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-14{gap:calc(var(--spacing) * 14)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-16>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-20>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 20) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 20) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}.gap-y-5{row-gap:calc(var(--spacing) * 5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.gap-y-14{row-gap:calc(var(--spacing) * 14)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-black\/5>:not(:last-child)){border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){:where(.divide-black\/5>:not(:last-child)){border-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}:where(.divide-line>:not(:last-child)){border-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.divide-line>:not(:last-child)){border-color:color-mix(in oklab,currentColor 14%,transparent)}}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--tpl-radius,.75rem)}.rounded-md{border-radius:calc(var(--tpl-radius,.75rem) * .7)}.rounded-sm{border-radius:calc(var(--tpl-radius,.75rem) * .4)}.rounded-xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.35)}.rounded-t-2xl{border-top-left-radius:calc(var(--tpl-radius,.75rem) * 1.7);border-top-right-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-black\/8{border-color:#00000014}@supports (color:color-mix(in lab,red,red)){.border-black\/8{border-color:color-mix(in oklab,var(--color-black) 8%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/15{border-color:color-mix(in oklab,currentcolor 15%,transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/20{border-color:color-mix(in oklab,currentcolor 20%,transparent)}}.border-current\/25{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/25{border-color:color-mix(in oklab,currentcolor 25%,transparent)}}.border-current\/60{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/60{border-color:color-mix(in oklab,currentcolor 60%,transparent)}}.border-current\/70{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-current\/70{border-color:color-mix(in oklab,currentcolor 70%,transparent)}}.border-line{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){.border-line{border-color:color-mix(in oklab,currentColor 14%,transparent)}}.border-transparent{border-color:#0000}.bg-\[\#03C75A\]{background-color:#03c75a}.bg-\[\#0064FF\]{background-color:#0064ff}.bg-\[\#FEE500\]{background-color:#fee500}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black) 45%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/92{background-color:#000000eb}@supports (color:color-mix(in lab,red,red)){.bg-black\/92{background-color:color-mix(in oklab,var(--color-black) 92%,transparent)}}.bg-current,.bg-current\/5{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/5{background-color:color-mix(in oklab,currentcolor 5%,transparent)}}.bg-current\/8{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/8{background-color:color-mix(in oklab,currentcolor 8%,transparent)}}.bg-current\/15{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\/15{background-color:color-mix(in oklab,currentcolor 15%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-white\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\/70{background-color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-\[7\%\]{padding-inline:7%}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pt-\[var\(--oasi-gap\)\]{padding-top:var(--oasi-gap)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pb-28{padding-bottom:calc(var(--spacing) * 28)}.pb-56{padding-bottom:calc(var(--spacing) * 56)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[calc\(3px\+0\.625rem\)\]{padding-left:calc(3px + .625rem)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-serif{font-family:Noto Serif KR,Batang,Times New Roman,serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[28px\]{font-size:28px}.text-\[length\:var\(--fs-body\)\]{font-size:var(--fs-body)}.text-\[length\:var\(--fs-h2\)\]{font-size:var(--fs-h2)}.text-\[length\:var\(--fs-h3\)\]{font-size:var(--fs-h3)}.text-\[length\:var\(--fs-lead\)\]{font-size:var(--fs-lead)}.text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.text-\[length\:var\(--fs-xs\)\]{font-size:var(--fs-xs)}.leading-\[1\.8\]{--tw-leading:1.8;line-height:1.8}.leading-\[1\.9\]{--tw-leading:1.9;line-height:1.9}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-\[0\.24em\]{--tw-tracking:.24em;letter-spacing:.24em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-current{color:currentColor!important}.text-\[\#191600\]{color:#191600}.text-current\/55{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/55{color:color-mix(in oklab,currentcolor 55%,transparent)}}.text-current\/80{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-current\/80{color:color-mix(in oklab,currentcolor 80%,transparent)}}.text-muted{color:currentColor}@supports (color:color-mix(in lab,red,red)){.text-muted{color:color-mix(in oklab,currentColor 96%,transparent)}}.text-stone-600{color:var(--color-stone-600)}.text-white{color:var(--color-white)}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-black\/20{text-decoration-color:#0003}@supports (color:color-mix(in lab,red,red)){.decoration-black\/20{-webkit-text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent);text-decoration-color:color-mix(in oklab,var(--color-black) 20%,transparent)}}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.underline-offset-\[5px\]{text-underline-offset:5px}.underline-offset-\[6px\]{text-underline-offset:6px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-65{opacity:.65}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-100{opacity:1}.opacity-\[0\.08\]{opacity:.08}.opacity-\[0\.16\]{opacity:.16}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}.group-open\:rotate-45:is(:where(.group):is([open],:popover-open,:open) *){rotate:45deg}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.marker\:content-none ::marker{--tw-content:none;content:none}.marker\:content-none::marker{--tw-content:none;content:none}.marker\:content-none ::-webkit-details-marker{--tw-content:none;content:none}.marker\:content-none::-webkit-details-marker{--tw-content:none;content:none}@media(hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-current:hover{border-color:currentColor}.hover\:bg-black\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/5:hover{background-color:color-mix(in oklab,var(--color-black) 5%,transparent)}}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black) 65%,transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.hover\:bg-current\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/10:hover{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.hover\:bg-current\/25:hover{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.hover\:bg-current\/25:hover{background-color:color-mix(in oklab,currentcolor 25%,transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.hover\:text-current:hover{color:currentColor}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-45:hover{opacity:.45}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-85:hover{opacity:.85}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-25:disabled{opacity:.25}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(prefers-reduced-motion:no-preference){.motion-safe\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@media(min-width:40rem){.sm\:top-1\/2{top:50%}.sm\:top-5{top:calc(var(--spacing) * 5)}.sm\:right-5{right:calc(var(--spacing) * 5)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-auto{bottom:auto}.sm\:left-1\/2{left:50%}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:mx-auto{margin-inline:auto}.sm\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.sm\:mb-10{margin-bottom:calc(var(--spacing) * 10)}.sm\:mb-14{margin-bottom:calc(var(--spacing) * 14)}.sm\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-4\/3{aspect-ratio:4/3}.sm\:aspect-video{aspect-ratio:var(--aspect-video)}.sm\:max-h-\[85vh\]{max-height:85vh}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-\[min\(600px\,56\%\)\]{width:min(600px,56%)}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-\[18rem\]{max-width:18rem}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:shrink-0{flex-shrink:0}.sm\:basis-1\/3{flex-basis:33.3333%}.sm\:basis-\[30\%\]{flex-basis:30%}.sm\:basis-\[56\%\]{flex-basis:56%}.sm\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:columns-2{columns:2}.sm\:columns-3{columns:3}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,360px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,360px) minmax(0,1fr)}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-baseline{align-items:baseline}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}.sm\:gap-8{gap:calc(var(--spacing) * 8)}.sm\:gap-10{gap:calc(var(--spacing) * 10)}:where(.sm\:space-y-24>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 24) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 24) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-2xl{border-radius:calc(var(--tpl-radius,.75rem) * 1.7)}.sm\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sm\:p-3\.5{padding:calc(var(--spacing) * 3.5)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-5{padding-inline:calc(var(--spacing) * 5)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-10{padding-inline:calc(var(--spacing) * 10)}.sm\:py-14{padding-block:calc(var(--spacing) * 14)}.sm\:py-24{padding-block:calc(var(--spacing) * 24)}.sm\:pb-12{padding-bottom:calc(var(--spacing) * 12)}.sm\:pl-14{padding-left:calc(var(--spacing) * 14)}.sm\:text-right{text-align:right}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[length\:var\(--fs-sm\)\]{font-size:var(--fs-sm)}.sm\:first\:pl-0:first-child{padding-left:0}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.md\:gap-12{gap:calc(var(--spacing) * 12)}.md\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.md\:pb-16{padding-bottom:calc(var(--spacing) * 16)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:top-12{top:calc(var(--spacing) * 12)}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:order-none{order:0}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:mt-6{margin-top:calc(var(--spacing) * 6)}.lg\:mt-24{margin-top:calc(var(--spacing) * 24)}.lg\:mt-auto{margin-top:auto}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:aspect-3\/2{aspect-ratio:3/2}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-fit{height:fit-content}.lg\:h-full{height:100%}.lg\:h-screen{height:100vh}.lg\:min-h-\[24rem\]{min-height:24rem}.lg\:min-h-\[34rem\]{min-height:34rem}.lg\:w-\[18\.75rem\]{width:18.75rem}.lg\:w-\[260px\]{width:260px}.lg\:w-auto{width:auto}.lg\:shrink-0{flex-shrink:0}.lg\:basis-1\/4{flex-basis:25%}.lg\:basis-\[200px\]{flex-basis:200px}.lg\:basis-auto{flex-basis:auto}.lg\:snap-none{scroll-snap-type:none}.lg\:columns-4{columns:4}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-between{justify-content:space-between}.lg\:gap-0{gap:0}.lg\:gap-3{gap:calc(var(--spacing) * 3)}.lg\:gap-4{gap:calc(var(--spacing) * 4)}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:gap-7{gap:calc(var(--spacing) * 7)}.lg\:gap-8{gap:calc(var(--spacing) * 8)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:gap-12{gap:calc(var(--spacing) * 12)}.lg\:gap-14{gap:calc(var(--spacing) * 14)}.lg\:gap-20{gap:calc(var(--spacing) * 20)}:where(.lg\:space-y-28>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 28) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 28) * calc(1 - var(--tw-space-y-reverse)))}.lg\:gap-x-12{column-gap:calc(var(--spacing) * 12)}.lg\:overflow-visible{overflow:visible}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-7{padding-inline:calc(var(--spacing) * 7)}.lg\:px-10{padding-inline:calc(var(--spacing) * 10)}.lg\:px-14{padding-inline:calc(var(--spacing) * 14)}.lg\:py-10{padding-block:calc(var(--spacing) * 10)}.lg\:py-16{padding-block:calc(var(--spacing) * 16)}.lg\:pt-14{padding-top:calc(var(--spacing) * 14)}.lg\:pt-16{padding-top:calc(var(--spacing) * 16)}.lg\:pb-0{padding-bottom:0}.lg\:pb-14{padding-bottom:calc(var(--spacing) * 14)}.lg\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.lg\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.xl\:col-span-4{grid-column:span 4/span 4}.xl\:col-span-5{grid-column:span 5/span 5}.xl\:col-span-7{grid-column:span 7/span 7}.xl\:col-span-8{grid-column:span 8/span 8}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:-mt-24{margin-top:calc(var(--spacing) * -24)}.xl\:mr-16{margin-right:calc(var(--spacing) * 16)}.xl\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.xl\:-ml-10{margin-left:calc(var(--spacing) * -10)}.xl\:ml-auto{margin-left:auto}.xl\:block{display:block}.xl\:w-\[50\%\]{width:50%}.xl\:w-\[64\%\]{width:64%}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:gap-x-10{column-gap:calc(var(--spacing) * 10)}.xl\:self-end{align-self:flex-end}.xl\:px-8{padding-inline:calc(var(--spacing) * 8)}.xl\:py-8{padding-block:calc(var(--spacing) * 8)}.xl\:py-12{padding-block:calc(var(--spacing) * 12)}.xl\:py-16{padding-block:calc(var(--spacing) * 16)}.xl\:pt-12{padding-top:calc(var(--spacing) * 12)}.xl\:pr-8{padding-right:calc(var(--spacing) * 8)}.xl\:pr-16{padding-right:calc(var(--spacing) * 16)}.xl\:pb-56{padding-bottom:calc(var(--spacing) * 56)}.xl\:pl-10{padding-left:calc(var(--spacing) * 10)}.xl\:pl-20{padding-left:calc(var(--spacing) * 20)}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>li\]\:mb-3>li{margin-bottom:calc(var(--spacing) * 3)}}@font-face{font-family:Pretendard Variable;font-weight:45 920;font-style:normal;font-display:swap;src:url(/fonts/PretendardVariable.woff2)format("woff2")}html{-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all;overflow-wrap:break-word;margin:0;padding:0}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{scrollbar-width:thin}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:where(.site,.site-canvas){--fs-display:clamp(1.75rem, 1.25rem + 2.2vw, 3rem);--fs-h2:clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);--fs-h3:clamp(1.125rem, 1.05rem + .3vw, 1.25rem);--fs-lead:clamp(1.0625rem, 1rem + .25vw, 1.1875rem);--fs-body:clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);--fs-sm:clamp(.96875rem, .95rem + .1vw, 1rem);--fs-xs:clamp(.875rem, .86rem + .06vw, .90625rem);--section-space:clamp(1.75rem, 4vw, var(--tpl-section-space,2.75rem));--site-line:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line:color-mix(in oklab, currentColor 14%, transparent)}}:where(.site,.site-canvas){--site-line-soft:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-line-soft:color-mix(in oklab, currentColor 8%, transparent)}}:where(.site,.site-canvas){--site-muted:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas){--site-muted:color-mix(in oklab, currentColor 96%, transparent)}}:where(.site,.site-canvas) .serif{font-family:var(--tpl-font-heading,var(--font-serif));letter-spacing:var(--tpl-heading-tracking,normal)}:where(.site,.site-canvas) :is(.serif,.h2,.h3){font-synthesis-weight:none}:where(.site,.site-canvas) .tpl-border{border-width:var(--tpl-border-width,1px)}:where(.site,.site-canvas) .tpl-shadow{box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .shell{width:100%;max-width:78rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}:where(.site,.site-canvas) .line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where(.site,.site-canvas) .measure{max-width:68ch}:where(.site,.site-canvas) .paper{background-image:var(--tpl-texture,none)}:where(.site,.site-canvas) .panel{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel{background-color:color-mix(in oklab,currentColor 5%,transparent)}}:where(.site,.site-canvas) .panel{border:var(--tpl-border-width,1px) solid var(--site-line);border-radius:var(--tpl-radius,.75rem);box-shadow:var(--tpl-shadow,none)}:where(.site,.site-canvas) .panel-sunken{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.site,.site-canvas) .panel-sunken{background-color:color-mix(in oklab,currentColor 6%,transparent)}}:where(.site,.site-canvas) .h2{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h2);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.01em);line-height:1.2}:where(.site,.site-canvas) .h3{font-family:var(--tpl-font-heading,var(--font-serif));font-size:var(--fs-h3);font-weight:var(--tpl-heading-weight,700);letter-spacing:var(--tpl-heading-tracking,-.005em);line-height:1.35}:where(.site,.site-canvas) .label{font-size:var(--fs-xs);color:var(--site-muted);font-weight:600}:where(.site,.site-canvas) .tap{min-width:2.75rem;min-height:2.75rem}:where(.site,.site-canvas) .only-touch{display:none}@media(hover:none)and (pointer:coarse){:where(.site,.site-canvas) .only-touch{display:flex}}:where(.site,.site-canvas) .safe-b{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}:where(.site,.site-canvas) .slider-viewport{touch-action:pan-y pinch-zoom;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overflow-x:auto}:where(.site,.site-canvas) .slider-viewport::-webkit-scrollbar{display:none}:where(.site,.site-canvas) .slider-viewport[data-slider=on]{scroll-snap-type:none;overflow-x:hidden}:where(.site,.site-canvas) .slider-track{touch-action:pan-y pinch-zoom;display:flex}:where(.site,.site-canvas) .slider-track>*{scroll-snap-align:start}:where(.site,.site-canvas) .slider-viewport[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}:where(.site,.site-canvas) .text-muted{color:var(--site-muted)}:where(.site,.site-canvas) .border-line,:where(.site,.site-canvas) .divide-line>:not(:last-child){border-color:var(--site-line)}:root{--tpl-primary:#18181b;--tpl-secondary:#52525b;--tpl-bg:#fff;--tpl-card:#fafafa;--tpl-text:#09090b;--tpl-accent:#2563eb;--tpl-surface:#fff;--tpl-surface-alt:#f5f5f4;--tpl-inverse:#1c1917;--tpl-border:#e7e5e4;--tpl-font-heading:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-font-body:"Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;--tpl-radius:.75rem;--tpl-border-width:1px;--tpl-shadow:0 1px 2px #0000000f;--tpl-heading-tracking:-.02em;--tpl-heading-weight:700;--tpl-section-space:4rem}html{scroll-behavior:smooth;scroll-padding-top:5.5rem}body{background-color:var(--color-surface);background-image:var(--tpl-texture,none);color:var(--color-ink);font-family:var(--tpl-font-body,var(--font-sans));font-size:var(--fs-body);font-feature-settings:"tnum" 1;padding-bottom:env(safe-area-inset-bottom);font-weight:450;line-height:1.7}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@keyframes w4-note-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.w4-note-fade{animation:.4s w4-note-fade}@media(prefers-reduced-motion:reduce){.w4-note-fade{animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0} diff --git a/solution/site/scripts/mockup/vendor/retired/index-kQ0XTMao.js b/solution/site/scripts/mockup/vendor/retired/index-kQ0XTMao.js new file mode 100644 index 0000000..7d44806 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-kQ0XTMao.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Oh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Oh)return;Oh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":Sb,v||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),v)return new Promise((z,j)=>{N.addEventListener("load",z),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Uo={exports:{}},_s={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function zb(){if(Dh)return _s;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return _s.Fragment=r,_s.jsx=o,_s.jsxs=o,_s}var Rh;function Tb(){return Rh||(Rh=1,Uo.exports=zb()),Uo.exports}var n=Tb(),Lo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),N=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function U(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}U.prototype.isReactComponent={},U.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},U.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=U.prototype;function L(w,q,J){this.props=w,this.context=q,this.refs=R,this.updater=J||j}var Z=L.prototype=new G;Z.constructor=L,T(Z,U.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,N=3,z=!1,j=!1,T=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(T=!1,Z(M),!j)if(o(g)!==null)j=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return R?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,N=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,N=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof L=="function")K=function(){L(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){U(ce,0)};function ie(M,Q){Y=U(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(T?(G(Y),Y=-1):T=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),j||z||(j=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=N;return function(){var ae=N;N=Q;try{return M.apply(this,arguments)}finally{N=ae}}}})(qo)),qo}var Bh;function Cb(){return Bh||(Bh=1,Bo.exports=_b()),Bo.exports}var $o={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function kb(){if(qh)return xt;qh=1;var s=ru();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),$o.exports=kb(),$o.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yh;function Ob(){if(Yh)return Cs;Yh=1;var s=Cb(),r=ru(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),Es._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var H=` +`+S[a].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,On=s.unstable_shouldYield,Dn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Rn=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Un=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Hn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Hn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,jr=Math.log,Nr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(jr(e)/Nr|0)|0}var Ba=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Sr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _r(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Cr(e,h,qt(t)):l!=null?Cr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ar(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ar(e)}function Cr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Va(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rr=!1;if(jl)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Rr=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Rr=!1}var $l=null,Ur=null,li=null;function lf(){if(li)return li;var e,t=Ur,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Vn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Zx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Kx(e,t){if(Fa)return e==="compositionend"||!$r&&ff(e,t)?(e=lf(),li=Ur=$l=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Wa=null,Qr=null,Fn=null,Vr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vr||Wa==null||Wa!==ei(a)||(a=Wa,"selectionStart"in a&&Xr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fn&&Jn(Fn,a)||(Fn=a,a=Ji(Qr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(A,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(A,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(A,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(A,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,A,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(A,oa)}),je&&Sl(A,me),ne}function se(A,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(A,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(A,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(A,ee),je&&Sl(A,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(A,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(A,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,A,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(A,Nb)}),je&&Sl(A,me),ne}function Le(A,E,_,B){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===T){if(E.tag===7){l(A,E.sibling),B=i(E,_.props.children),B.return=A,A=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Aa(ne)===E.type){l(A,E.sibling),B=i(E,_.props),ls(B,_),B.return=A,A=B;break e}l(A,E);break}else t(A,E);E=E.sibling}_.type===T?(B=Sa(_.props.children,A.mode,B,_.key),B.return=A,A=B):(B=di(_.type,_.key,_.props,null,A.mode,B),ls(B,_),B.return=A,A=B)}return h(A);case j:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(A,E.sibling),B=i(E,_.children||[]),B.return=A,A=B;break e}else{l(A,E);break}else t(A,E);E=E.sibling}B=Pr(_,A.mode,B),B.return=A,A=B}return h(A);case W:return _=Aa(_),Le(A,E,_,B)}if(ie(_))return I(A,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(A,E,_,B)}if(typeof _.then=="function")return Le(A,E,vi(_),B);if(_.$$typeof===L)return Le(A,E,pi(A,_),B);yi(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(A,E.sibling),B=i(E,_),B.return=A,A=B):(l(A,E),B=Ir(_,A.mode,B),B.return=A,A=B),h(A)):l(A,E)}return function(A,E,_,B){try{ts=0;var ne=Le(A,E,_,B);return on=null,ne}catch(ee){if(ee===cn||ee===gi)throw ee;var we=Mt(29,ee,null,A.mode);return we.lanes=B,we.return=A,we}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Vl=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),kf(e,null,l),t}return ui(e,a,t,l),fi(e)}function as(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function mc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var hc=!1;function ns(){if(hc){var e=rn;if(e!==null)throw e}}function ss(e,t,l,a){hc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==h&&(b===null?H.firstBaseUpdate=C:b.next=C,H.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,H=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ve&k)===k:(a&k)===k){k!==0&&k===sn&&(hc=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var Le=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(Le,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(Le,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(C=H=D,S=$):H=H.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);H===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=H,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Oc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=fg(S,a);cs(e,t,H,Lt(e))}else cs(e,t,a,Lt(e))}catch($){cs(e,t,{then:function(){},status:"rejected",reason:$},Lt())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function gg(){}function kc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Ad(e).queue;Td(e,i,t,ae,l===null?gg:function(){return _d(e),l(a)})}function Ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Ad(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Lt())}function Mc(){return ut(Es)}function Cd(){return Fe().memoizedState}function kd(){return Fe().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),as(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Od(t,l):(l=Fr(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Lt();cs(e,t,l,a)}function cs(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),He===null&&oi(),!1}catch{}finally{}if(l=Fr(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Oc(e,t,l,a){if(a={lane:2,revertLane:fo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Fr(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){fn=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var os={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};os.useEffectEvent=Qe;var Rd={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(e,t){var l=yt();return Cc(l,e,t)},useTransition:function(){var e=zc(!1);return e=Td.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ve&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,mn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=He.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,an(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=an(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&xo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)fs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),xc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),xc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(tc(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),xc(),e!==null&&q(Ta);break;case 24:El(We)}}function ds(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(H){Me(i,S,H)}}}a=a.next}while(a!==c)}}catch(H){Me(t,t.return,H)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Me(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Kc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,l),e=e.sibling;e!==null;)Fc(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Wc=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,vo=ar,e=Sf(e),Xr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,H=0,$=e,k=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)k=$,$=D;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++H===a&&(S=h),(D=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(yo={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bLe&&(h=Le,Le=se,se=h);var A=jf(b,se),E=jf(b,Le);if(A&&E&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var _=$.createRange();_.setStart(A.node,A.offset),D.removeAllRanges(),se>Le?(D.addRange(_),D.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!vo,yo=vo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=ta,t=bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{dm(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Bm(){if(lt===4||lt===3){lt=0,Dn();var e=ta,t=bn,l=Rl,a=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,bn=ta=null,qm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Er(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=no,no=null;var c=ta,h=Rl;if(lt=0,bn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,Nm(c.current),vm(c,c.current,h,l),Ae=b,vs(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,qm(e,t)}}function Ym(e,t,l){t=Gt(l,t),t=Lc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(Bn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)Ym(e,e,l);else for(;t!==null;){if(t.tag===3){Ym(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=Gd(2),a=Kl(t,l,2),a!==null&&(Xd(l,a,t,e),Bn(a,2),fl(a));break}}t=t.return}}function co(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(eo=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&vn(e,0):to|=l,gn===ve&&(gn=0)),fl(e)}function Gm(e,t){t===0&&(t=Ws()),e=Na(e,t),e!==null&&(Bn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Gm(e,l)}function Ug(e,t){return Pt(e,t)}var Vi=null,jn=null,oo=!1,Zi=!1,uo=!1,aa=0;function fl(e){e!==jn&&e.next===null&&(jn===null?Vi=jn=e:jn=jn.next=e),Zi=!0,oo||(oo=!0,Hg())}function vs(e,t){if(!uo&&Zi){uo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ve,c=qa(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);uo=!1}}function Lg(){Xm()}function Xm(){Zi=oo=!1;var e=0;aa!==0&&Kg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(jn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||vs(e),aa!==0&&(aa=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var H=S.transferSize,$=S.initiatorType;H&&th($)&&(S=S.responseEnd,h+=H*(S"u"?null:document;function mh(e,t,l){var a=Nn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),mh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Nn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Sn(e);break;case"script":c=wn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ss(c))||t==="script"&&a.querySelector(ws(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Nn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ws(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Nn;if(a&&e){var i=Xa(a).hoistableStyles,c=Sn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ss(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&To(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,H){S.onload=C,S.onerror=H}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Nn;if(l&&e){var a=Xa(l).hoistableScripts,i=wn(e),c=a.get(i);c||(c=l.querySelector(ws(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Ao(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Sn(l.href),l=Xa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Sn(l.href);var c=Xa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ss(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(l),l=Xa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sn(e){return'href="'+$t(e)+'"'}function Ss(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function wn(e){return'[src="'+$t(e)+'"]'}function ws(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Sn(l.href);var c=e.querySelector(Ss(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&To(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=wn(l.src),(i=e.querySelector(ws(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),Ao(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Sn(a.href),c=t.querySelector(Ss(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&To(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _o=0;function mb(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0_o?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(hb,e),tr=null,er.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Ho.exports=Ob(),Ho.exports}var Po=Db();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Dp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bb=O.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>O.createElement("svg",{ref:g,...Hb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Dp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>O.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=O.forwardRef(({className:u,...f},d)=>O.createElement(Bb,{ref:d,iconNode:r,className:Dp(`lucide-${Rb(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=_e("arrow-up-right",qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cu=_e("check",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ou=_e("chevron-down",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ua=_e("chevron-left",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ha=_e("chevron-right",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Rp=_e("mail",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Up=_e("menu",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],uu=_e("message-circle",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Yo=_e("navigation",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A0=_e("sun",T0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],C0=_e("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",k0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Lp=O.createContext(null);function D0({payload:s,children:r}){return n.jsx(Lp.Provider,{value:s,children:r})}function P(){const s=O.useContext(Lp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=O.useState(0),[f,d]=O.useState(!1),[m,x]=O.useState(!1),[g,p]=O.useState({now:0,total:0}),[v,y]=O.useState({}),N=O.useRef(null),z=O.useRef(null),j=O.useRef(null),T=r.length;O.useEffect(()=>{T>1&&u(Math.floor(Math.random()*T))},[T]);const R=O.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(O.useEffect(()=>{if(!m)return;R();const X=()=>R(),V=Y=>{var le,xe;const W=Y.target;(le=j.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,R]),O.useEffect(()=>()=>{var X;return(X=N.current)==null?void 0:X.pause()},[]),r.length===0)return null;const U=r[o]??r[0],G=(X=o)=>{const V=N.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},L=()=>{var X;(X=N.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:U.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${U.title}`,onClick:()=>f?L():G(),children:f?n.jsx(L0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!U.lyrics,children:(U.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Hp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Ej={PUBLISHED:3};function Tn(s){return s.filter(r=>Hp(r.status)&&r.value!=null&&r.value!=="")}function Bp(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Bp(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Bp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function fu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function X0(s){return s.filter(r=>Hp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function du(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function F0(s,r){var p,v;const o=y=>{const N=s.slice(0,Math.max(0,y)),z=N.split(` +`).length,j=y-N.lastIndexOf(` +`);return`${z}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:F0(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const N=y;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const I0=1260,P0=60,ev="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Kh(s.startTime??"")??Kh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??P0),g=u+m;if(g+x>I0){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(y,N)=>Math.round(y+(N-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function av(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const qp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function $p(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Yp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function mu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Yp(s)[0]??nv(s)[0]}function hu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:fu(r),value:pu(r,s.facts)})).filter(r=>r.value!=="")}function pu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=qp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return du(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:fu(m),value:pu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const ov=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function uv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function fv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function dv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function xu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Ht(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return qp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:fu(u),value:pu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return An(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return An(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return An(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return An(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function La(s){return An(s,Sv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Yp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return du(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=$p(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function Xp(s){if(s.place.category!==da.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,zv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Av(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Ev(s,wv)}function gt(s,r){const o=Hs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function gu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Ht(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Ht(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Cv=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=O.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Cv;if(O.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function kv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var T;return(T=j.alt)==null?void 0:T.trim()}).sort((j,T)=>Number(T.isPrimary)-Number(j.isPrimary)).slice(0,Dv),[g,p]=O.useState(0),[v,y]=O.useState(!1),N=O.useRef(null),z=O.useCallback(j=>p(T=>(T+j+x.length)%x.length),[x.length]);return O.useEffect(()=>{if(v||x.length<2)return;const j=setInterval(()=>z(1),Ov);return()=>clearInterval(j)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const T=N.current;if(N.current=null,T===null)return;const R=j.changedTouches[0].clientX-T;Math.abs(R)>40&&z(R<0?1:-1)},children:[x.map((j,T)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:T===0?"high":"low",loading:T===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:T===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,T)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(T),"aria-label":`${T+1}번째 사진`,"aria-current":T===g,className:`h-1.5 rounded-full bg-current transition-all ${T===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=La(s).slice(0,3),f=_n(s),d=Ke(s),m=xv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Lv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Qp(s){return Lv[s??""]??"default"}function vr(){return Qp(P().theme.templateId)}const mr=5,eu=1.8,Hv=3;function Bv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+eu)} { opacity: 0; } + ${o(r-eu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function qv(s,r){return((r-s)%r*mr+eu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Hs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:hu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function Gv(){const s=P(),r=xu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=La(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Bs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Vp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function bu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Vp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=La(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Bs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:v})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Kv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(ou,{className:"size-4"})]})]})]})})}function vu(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Xs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function yu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(yu(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(yu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Zp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(yu(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function ju({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Nu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Su({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?ju:p==="oasi"?Nu:p==="studio"?Su:p==="pastel"?wu:p==="editorial"?bu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Eu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:Eu(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return Eu(f,m)})}function zu(s){return typeof s=="number"}function tu(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Tu(s){return Math.sign(s)}function Rs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Rs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function qs(s){return $s(s).map(Number)}function al(s){return s[Qs(s)]}function Qs(s){return Math.max(0,s.length-1)}function Au(s,r){return r===Qs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function $s(s){return Object.keys(s)}function Kp(s,r){return[s,r].reduce((o,u)=>($s(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Kp(d,m):m}),o),{})}function lu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return tu(s)?o[s](g):s(r,g,p)}return{measure:m}}function Ys(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Ys(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function v(){z(),f.clear()}function y(R){if(!g)return;m||(m=R,o(),o());const U=R-m;for(m=R,x+=U;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function N(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:v,start:N,stop:z,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(j){const{height:T,width:R}=j;return u?T:R}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Jp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ge((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),y}function p(N){return v().set(x()+N)}function v(){return Jp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function fy(s,r,o,u,f,d,m,x,g,p,v,y,N,z,j,T,R,U,G){const{cross:L,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Ys(),W=Ys(),le=Ra(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=j?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(j?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(Tu(te)*-1),tt=v.byDistance(te,!j).distance;return j||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,L),N.emit("pointerDown")))}function oe(te){if(!lu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,L),Nt=Rs(De,Xe),It=Rs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>T&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=iy(tt,Nt),nl=K-10*It,Bt=U+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!j),pe=!1,N.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function dy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(lu(y,r)?y:y.touches[0])[j]}function x(y){return u=y,f=y,m(y)}function g(y){const N=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),N}function p(y){if(!u||!f)return 0;const N=m(f)-m(u),z=d(y)-d(u),j=d(y)-d(f)>170,T=N/z;return z&&!j&&Ge(T)>.1?T:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function N(R){return f.measureSize(m.measure(R))}function z(R){if(!d)return;p=N(s),v=u.map(N);function U(G){for(const L of G){if(y)return;const Z=L.target===s,X=u.indexOf(L.target),V=Z?p:v[X],Y=N(Z?s:u[X]);if(Ge(Y-V)>=.5){R.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(R,G))&&U(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function j(){y=!0,g&&g.disconnect()}return{init:z,destroy:j}}function xy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function N(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=Tu(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function j(){return g}function T(){return x}function R(){return m}function U(){return L(f)}function G(){return Z(d)}function L(V){return g=V,X}function Z(V){return p=V,X}const X={direction:T,duration:j,velocity:R,seek:N,settled:z,useBaseFriction:G,useBaseDuration:U,useFriction:Z,useDuration:L};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",T=Ge(s[j]-r.get()),R=o.get()-r.get(),U=x.constrain(T/m);o.subtract(R*U),!z&&Ge(R){const{min:R,max:U}=d,G=d.constrain(j),L=!T,Z=Au(o,T);return L?U:Z||p(R,G)?R:p(U,G)?U:G}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:T}=x;return m.slice(j,T)}return{snapsContained:g,scrollContainLimit:x}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function v(N){if(!p(N))return;const z=s*(N*-1);u.forEach(j=>j.add(z))}return{loop:v}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=N(),v=z();function y(){return x(u).map(T=>al(T)[m]-T[0][d]).map(Ge)}function N(){return u.map(T=>o[d]-T[d]).map(T=>-Ge(T))}function z(){return x(p).map(T=>T[0]).map((T,R)=>T+g[R])}return{snaps:p,snapsAligned:v}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const N=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?N:N.slice(x,g).map((j,T,R)=>{const U=!T,G=Au(R,T);if(U){const L=al(R[0])+1;return np(L)}if(G){const L=Qs(d)-al(R)[0]+1;return np(L,al(R)[0])}return j})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((T,R)=>Ge(T)-Ge(R))[0]}function p(j){const T=s?m(j):x(j),R=r.map((G,L)=>({diff:v(G-T,0),index:L})).sort((G,L)=>Ge(G.diff)-Ge(L.diff)),{index:U}=R[0];return{index:U,distance:T}}function v(j,T){const R=[j,j+o,j-o];if(!s)return j;if(!T)return g(R);const U=R.filter(G=>Tu(G)===T);return U.length?g(U):al(R)-o}function y(j,T){const R=r[j]-f.get(),U=v(R,T);return{index:j,distance:U}}function N(j,T){const R=f.get()+j,{index:U,distance:G}=p(R),L=!s&&d(R);if(!T||L)return{index:U,distance:j};const Z=r[U]-G,X=j+v(Z,0);return{index:U,distance:X}}return{byDistance:N,byIndex:y,shortcut:v}}function Ey(s,r,o,u,f,d,m){function x(y){const N=y.distance,z=y.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,N){const z=f.byDistance(y,N);x(z)}function p(y,N){const z=r.clone().set(y),j=f.byIndex(z.get(),N);x(j)}return{distance:g,index:p}}function zy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function j(T){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(L=>L.includes(T));zu(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((T,R)=>{d.add(T,"focus",U=>{(yr(x)||x(z,U))&&j(R)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Ms(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return zu(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Fp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const z=ry(s.direction(N));z!==f&&(u.transform=o(z),f=z)}function p(N){d=!N}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ty(s,r,o,u,f,d,m,x,g){const v=qs(f),y=qs(f).reverse(),N=U().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function j(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function T(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function R(Y,W,le){const xe=T(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Ms(-1),translate:Fp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function U(){const Y=m[0],W=j(y,Y);return R(W,o,!1)}function G(){const Y=r-m[0]-1,W=j(v,Y);return R(W,-o,!0)}function L(){return N.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){N.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){N.forEach(Y=>Y.translate.clear())}return{canLoop:L,clear:X,loop:Z,loopPoints:N}}function Ay(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(T=>{const R=r.indexOf(T.target);f[R]=T}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function v(){x&&x.disconnect(),g=!0}function y(j){return $s(f).reduce((T,R)=>{const U=parseInt(R),{isIntersecting:G}=f[U];return(j&&G||!j&&!G)&&T.push(U),T},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const T=y(j);return j&&(d=T),j||(m=T),T}return{init:p,destroy:v,get:N}}function Cy(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=j(),y=T(),N=o.map(m),z=R();function j(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function T(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function R(){return o.map((G,L,Z)=>{const X=!L,V=Au(Z,L);return X?N[L]+v:V?N[L]+y:Z[L+1][x]-G[x]}).map(Ge)}return{slideSizes:N,slideSizesWithGaps:z,startGap:v,endGap:y}}function ky(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,N=zu(o);function z(U,G){return qs(U).filter(L=>L%G===0).map(L=>U.slice(L,L+G))}function j(U){return U.length?qs(U).reduce((G,L,Z)=>{const X=al(G)||0,V=X===0,Y=L===Qs(U),W=f[p]-d[X][p],le=f[p]-d[L][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(L),Y&&G.push(U.length),G},[]).map((G,L,Z)=>{const X=Math.max(Z[L-1]||0);return U.slice(X,G)}):[]}function T(U){return N?z(U,o):j(U)}return{groupSlides:T}}function My(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:N,dragFree:z,dragThreshold:j,inViewThreshold:T,slidesToScroll:R,skipSnaps:U,containScroll:G,watchResize:L,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(g,p),K=ce.measureSize(le),he=hy(K),Xe=cy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Cy(ce,le,xe,o,M,f),w=ky(ce,K,R,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,y),Te=Jp(Qs(oe),v,y),at=Te.clone(),Oe=qs(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Hn,options:{loop:sl}})=>{sl||Hn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Hn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:jr,animation:Nr,eventHandler:Js,scrollBounds:Ba,options:{loop:xa}},ga)=>{const rl=bl.settled(),qa=!Ba.shouldConstrain(),Bl=xa?rl:rl&&qa,Fs=Bl&&!jr.pointerDown();Fs&&Nr.stop();const Ws=Hn.get()*ga+bt.get()*(1-ga);sl.set(Ws),xa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=oy(u,f,()=>te(Un),bl=>Ce(Un,bl)),tt=.68,Nt=oe[Te.get()],It=Ms(Nt),nl=Ms(Nt),Bt=Ms(Nt),Pt=Ms(Nt),gl=xy(It,Bt,nl,Pt,N,tt),On=wy(y,oe,F,ze,Pt),Dn=Ey(De,Te,at,gl,On,Pt,m),pt=jy(ze),Zs=Ys(),Ks=_y(r,o,m,T),{slideRegistry:Rn}=Sy(ie,G,oe,fe,w,Oe),Ha=zy(s,o,Rn,Dn,gl,Zs,m,V),Un={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Dn,gl,On,Te,m,he,z,j,U,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,L,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:On,scrollTo:Dn,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:Ay(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Rn,slidesToScroll:w,target:Pt,translate:Fp(ce,r)};return Un}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Kp(d,m||{})}function o(d){const m=d.breakpoints||{},x=$s(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>$s(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),x=Ys(),g=Oy(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:N,off:z,emit:j}=g,T=ce;let R=!1,U,G=p(Dy,pr.globalOptions),L=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=L;V=(tu(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=tu(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){R||(G=p(G,Oe),L=v(G),Z=te||Z,W(),U=le(L),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),L.active&&(U.translate.to(U.location.get()),U.animation.init(),U.slidesInView.init(),U.slideFocus.init(at),U.eventHandler.init(at),U.resizeHandler.init(at),U.slidesHandler.init(at),U.options.loop&&U.slideLooper.loop(),V.offsetParent&&Y.length&&U.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){U.dragHandler.destroy(),U.eventStore.clear(),U.translate.clear(),U.slideLooper.clear(),U.resizeHandler.destroy(),U.slidesHandler.destroy(),U.slidesInView.destroy(),U.animation.destroy(),m.destroy(),x.clear()}function he(){R||(R=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!L.active||R||(U.scrollBody.useBaseFriction().useDuration(te===!0?0:L.duration),U.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=U.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=U.index.add(-1).get();Xe(te,Oe,1)}function Q(){return U.index.add(1).get()!==w()}function ae(){return U.index.add(-1).get()!==w()}function pe(){return U.scrollSnapList}function Ne(){return U.scrollProgress.get(U.offsetLocation.get())}function w(){return U.index.get()}function q(){return U.indexPrevious.get()}function J(){return U.slidesInView.get()}function F(){return U.slidesInView.get(!1)}function re(){return X}function fe(){return U}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:N,emit:j,plugins:re,previousScrollSnap:q,reInit:T,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function _u(s={},r=[]){const o=O.useRef(s),u=O.useRef(r),[f,d]=O.useState(),[m,x]=O.useState(),g=O.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return O.useEffect(()=>{Eu(o.current,s)||(o.current=s,g())},[s,g]),O.useEffect(()=>{sy(u.current,r)||(u.current=r,g())},[r,g]),O.useEffect(()=>{if(ny()&&m){pr.globalOptions=_u.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}_u.globalOptions=void 0;const Cu=4e3;function ku({box:s,interval:r,advance:o}){const u=O.useRef(o);u.current=o,O.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([T])=>{m=T.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const z=T=>{const R=T.target;!(R instanceof Element)||!R.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Wp(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function Vs({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Cu,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[N,z]=_u({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,T]=O.useState([]),[R,U]=O.useState(0),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=O.useRef(null),Y=O.useId();O.useEffect(()=>{var Q;if(!z)return;const ie=()=>{U(z.selectedScrollSnap()),L(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{T(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),O.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),ku({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=O.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=O.useRef(g);le.current=g;const xe=O.useRef(p);xe.current=p,O.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=O.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=O.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=j.length>1,Xe=f&&he&&j.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,N(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ip,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===R,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===R?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[R+1," / ",j.length]})]})]})}function Mu({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Hl,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=O.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru({open:s,onClose:r,label:o,children:u,wide:f}){return O.useEffect(()=>{if(!s)return;const d=x=>{x.key==="Escape"&&r()},m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",d),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",d)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl px-5 pb-8 pt-14 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${f?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})}),u]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=xu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const cp=10;function op(){const s=P(),r=s.posts??[],[o,u]=O.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/cp);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/cp)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Go=s=>!s.note&&Hy.has(s.value.trim()),By=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function qy(){var N,z;const s=P(),r=hu(s),o=Tn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||kv(s),f=s.links.filter(j=>{var T,R,U;return j.confirmed&&[(T=j.stayGuide)==null?void 0:T.policy,(R=j.stayGuide)==null?void 0:R.service,(U=j.stayGuide)==null?void 0:U.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(j=>{var T;return((T=j.stayGuide)==null?void 0:T.fields)??[]}),m=[...r],x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Go(j)?!1:By.has(j.label)||d.some(T=>T.key===j.key&&T.group==="rules"),p=f.map(j=>{var T;return((T=j.stayGuide)==null?void 0:T.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(up,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(up,{title:"시설 · 편의",rows:y.filter(j=>!Go(j)),children:n.jsx(Gy,{rows:y.filter(Go)})}),p.map(j=>n.jsx(Xy,{text:j},j.slice(0,32))),n.jsx(Qy,{})]})})}function up({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Xo=new Set(["가능","있음"]),$y="#16a34a",Yy="#e04b25";function Gy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Xo.has(u.value))-Number(Xo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Xo.has(o.value),f=u?$y:Yy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(cu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Xy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Qy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Vy="/v1/site/booking-request";function Zy({stay:s,guests:r}){const o=P(),u=O.useRef(Date.now()),[f,d]=O.useState(!1),[m,x]=O.useState(null);O.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Vy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(ks,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(ks,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(ks,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(ks,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(ks,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function ks({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Qo=["일","월","화","수","목","금","토"],fp=2;function dp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Ky(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=dp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=dp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Vo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Fy(s){return du(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=$p(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function ex(){var ce;const s=P(),r=O.useMemo(()=>Fy(s),[s]),o=O.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=O.useMemo(()=>Jy(o),[o]),[f,d]=O.useState(null),[m,x]=O.useState(0);O.useEffect(()=>d(new Date),[]);const g=O.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=O.useMemo(()=>f&&g?Ky(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=O.useState(null),[N,z]=O.useState(null),[j,T]=O.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[R,U]=O.useState(2),[G,L]=O.useState(!1),[Z,X]=O.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===j)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||N));return O.useEffect(()=>{U(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Wy,{payload:s,onReset:()=>L(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null].filter(Boolean).join(" · "),guests:`${R}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Qo[V.weekday]})`:null,N?`도착 ${N}`:null,Y?Vo(Y.name):null,`${R}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(fp,K+1)),disabled:m>=fp,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(ha,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Qo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>T(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>U(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[R,"명"]}),n.jsx("button",{type:"button",onClick:()=>U(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Vo(Y.name):""} · ${R}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>L(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Wy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(cu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Zy,{stay:o,guests:u})]})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=O.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Ht(s,"info")?[]:hu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(ju,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function t1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Nu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function l1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function a1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(ou,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function n1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Bs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(bu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(s1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function s1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Zo(){var p;const s=P(),r=ht(s),o=Xp(s),[u,f]=O.useState(null),d=vr();if(d==="reservation")return n.jsx(e1,{});if(d==="oasi")return n.jsx(t1,{});if(d==="studio")return n.jsx(l1,{});if(d==="pastel")return n.jsx(a1,{});if(d==="editorial")return n.jsx(n1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Iy,{});if(m==="rooms.tabs")return n.jsx(Py,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(i1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Du,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(ha,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(N=>N.unitId===v.unitId);return n.jsx(Ru,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[n.jsx("h3",{className:"h3",children:v.name}),(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:gu(N)}),n.jsx(Hl,{className:"size-4 shrink-0"})]},N.url))]}),n.jsx(ex,{})]})]})},v.unitId)})]})}function i1({images:s,name:r}){return n.jsx(Vs,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Mu,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function r1(){const s=P(),r=Ke(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:gu(f)},f.url))]})})]})})}function mp(){const s=P(),r=Xp(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:gu(m)}),n.jsx(Hl,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Hl,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(ex,{})]})})}function c1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function o1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Rp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:uu,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Hl,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function u1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function f1(){const[s,r]=O.useState([]);return O.useEffect(()=>r(lv()),[]),s}const d1=["봄","여름","가을","겨울"];function m1(){const s=P(),r=s.local.festivals,o=f1(),[u,f]=O.useState(null);if(r.length===0)return null;const d=d1.filter(y=>r.some(N=>N.season===y)),m=r.filter(y=>{var N;return!((N=y.season)!=null&&N.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const N=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const N=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(hp,{items:N,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(hp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function hp({items:s,label:r,remount:o}){const[u,f]=O.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(Vs,{label:r,children:s.map(d=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Ru,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:u.name}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})})]})}const Us=80,pp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Us},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Us},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Us}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Us))}분`}function h1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:h1(s.distanceText)}function p1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=O.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(N=>y.test(fa(N))).length,g=pp.filter((y,N)=>N===0||x(y)>0&&x(y)y.id===f)??pp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[vu(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Us,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const N=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(xp,{title:"주변 맛집",icon:C0,places:o,within:v}),r.attractions.length>0&&n.jsx(xp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function x1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function xp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=O.useState(null);return n.jsxs("div",{children:[n.jsx(x1,{icon:r,children:s}),n.jsx(Vs,{label:s,children:f.map(x=>n.jsx(Mu,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Hl,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Ru,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:d.name}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Hl,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function g1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function b1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=O.useState(s);return O.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const N=await y.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(z=>({temperature:Number(N.weather.temperature),condition:g1(Number(N.weather.weather_code)),note:z==null?void 0:z.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function gp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function v1(s,r,o,u){const[f,d]=O.useState({});return O.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?gp(s):void 0,x=o!=null&&o.length?gp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const y1={맑음:A0,흐림:i0,비:l0,눈:n0};function j1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function N1(){var y,N,z,j,T;const s=P(),r=b1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=v1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(T=f==null?void 0:f.tempNotes)==null?void 0:T[u]);if(!r)return null;const p=j1(r.observedAt),v=y1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function S1(){const s=P(),r=xu(s),o=s.theme.sections.find(T=>T.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=O.useState(null),m=O.useRef(null),[x,g]=O.useState(0),[p,v]=O.useState({prev:!1,next:!0}),y=O.useCallback(()=>{const T=m.current;if(!T)return;const R=T.clientWidth,U=T.scrollWidth-R;g(R>0?Math.round(T.scrollLeft/R):0),v({prev:T.scrollLeft>8,next:T.scrollLeft(y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),ku({box:m,interval:Cu,advance:()=>Wp(m.current,1)});const N=O.useCallback(T=>{const R=m.current;if(!R)return;const U=window.matchMedia("(prefers-reduced-motion: reduce)").matches;R.scrollBy({left:T*R.clientWidth,behavior:U?"auto":"smooth"})},[]),z=O.useCallback(()=>d(null),[]),j=O.useCallback(T=>d(R=>R===null?null:(R+T+r.length)%r.length),[r.length]);return O.useEffect(()=>{if(f===null)return;const T=U=>{U.key==="Escape"&&z(),U.key==="ArrowLeft"&&j(-1),U.key==="ArrowRight"&&j(1)},R=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",T),()=>{document.body.style.overflow=R,window.removeEventListener("keydown",T)}},[f,z,j]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:m,onScroll:y,className:"flex snap-x snap-mandatory gap-3 overflow-x-auto [touch-action:pan-y_pinch-zoom] [scrollbar-width:none] lg:grid lg:grid-cols-4 lg:gap-3 lg:snap-none lg:overflow-visible [&::-webkit-scrollbar]:hidden",children:r.map((T,R)=>n.jsx("li",{className:"w-full shrink-0 snap-center lg:w-auto",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-4/3 rounded-lg"})},T.mediaId))}),r.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(bp,{dir:"prev",show:p.prev,onClick:()=>N(-1)}),n.jsx(bp,{dir:"next",show:p.next,onClick:()=>N(1)}),n.jsxs("span",{className:"pointer-events-none absolute bottom-3 right-3 rounded-full bg-black/55 px-2.5 py-1 text-[length:var(--fs-xs)] font-semibold tabular-nums text-white lg:hidden",children:[Math.min(x+1,r.length)," / ",r.length]})]})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((T,R)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"rounded-lg",free:!0})},T.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((T,R)=>n.jsx("li",{children:n.jsx(Ko,{image:T,onOpen:()=>d(R),className:"aspect-square rounded-lg"})},T.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:z,children:[n.jsx("button",{type:"button",onClick:z,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(vp,{dir:"prev",onClick:()=>j(-1)}),n.jsx(vp,{dir:"next",onClick:()=>j(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:T=>T.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function bp({dir:s,show:r,onClick:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:o,"aria-label":s==="prev"?"이전 사진":"다음 사진","aria-hidden":!r,tabIndex:r?0:-1,className:`absolute top-1/2 z-10 flex size-9 -translate-y-1/2 items-center justify-center rounded-full bg-black/45 text-white backdrop-blur-sm transition-opacity hover:bg-black/65 lg:hidden ${r?"opacity-100":"pointer-events-none opacity-0"} ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(u,{className:"size-5"})})}function vp({dir:s,onClick:r}){const o=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Ko({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function yp(){const s=P(),{place:r,routes:o}=s,[u,f]=O.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=ey(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Pv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(cu,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Zp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Wv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Yo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function w1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=mu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Rp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function kn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(uu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function E1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?ju:x==="oasi"?Nu:x==="studio"?Su:x==="pastel"?wu:x==="editorial"?bu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Mn({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(Vs,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Gs(s,r,o){return`총 ${s}${o}`}const jp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function Np(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return jp[o%jp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=O.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":Np(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Fv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":Np(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function z1(){const s=P(),r=Wt(s,"daily"),[o,u]=O.useState();if(O.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Gs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(T1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function T1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Gs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Gs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Mn,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Mn,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=O.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Mn,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Gs(r.items.length,r.unverified,"장"),children:n.jsx(Mn,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function A1(){const s=P(),r=Wt(s,"quiz"),[o,u]=O.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Mn,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Ll=256,Os=318,zn=168,Sp=34,_1=16,wp=4;function rx(s,r,o){const u=Ll*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function C1(s){if(s.length<2)return 15;for(let r=_1;r>wp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Os-Sp*2&&f<=zn-Sp*2)return r}return wp}function k1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!M1(f,x)?f:void 0}),f=x)}),u}function M1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function O1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function D1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Zp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function R1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=k1(s,o),d=C1(f),m=O1(f.map(j=>rx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Os/2,v=g-zn/2,y=2**d,N=[];for(let j=Math.floor(p/Ll);j<=Math.floor((p+Os)/Ll);j+=1)for(let T=Math.floor(v/Ll);T<=Math.floor((v+zn)/Ll);T+=1){if(T<0||T>=y)continue;const R=(j%y+y)%y;N.push({key:`${j}-${T}`,url:`https://tile.openstreetmap.org/${d}/${R}/${T}.png`,left:j*Ll-p,top:T*Ll-v})}const z=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:zn,borderColor:Se,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Ll,height:Ll,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Os,height:zn,viewBox:`0 0 ${Os} ${zn}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,T)=>{const R=m[T];return n.jsx("a",{href:D1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:R.x-p,top:R.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function U1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function au(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function L1(){return n.jsx("div",{className:"flex w-6 shrink-0 items-center self-stretch","aria-hidden":!0,children:n.jsx("span",{className:"w-full border-t-2 border-dashed",style:{borderColor:Se}})})}function H1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d}){const m=tv({name:s.name,startTime:o,stops:u}),[x,g]=O.useState(!1);return O.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&g(!0)},[]),n.jsxs("article",{className:"w4-paper w-[320px] shrink-0 snap-center border",style:{backgroundColor:Ft,borderColor:Se},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[m.from,"–",m.to," · ",U1(m.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",m.from]})]}),x&&n.jsx(R1,{stops:m.stops.map(p=>p.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:m.stops.map((p,v)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:p.time}),n.jsxs("div",{className:`border-l pl-3 ${x?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[p.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",p.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[p.stop.imageUrl&&x&&n.jsx("img",{src:p.stop.imageUrl,alt:`${p.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(E1,{n:v+1}),p.stop.name]}),p.stop.note&&n.jsx("span",{hidden:!x,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.stop.note})]})]}),n.jsxs("p",{hidden:!x,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[p.time,"–",p.until,p.stop.searchQuery&&` · 지도 검색 ${p.stop.searchQuery}`]})]})]},`${p.stop.name}-${v}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>g(p=>!p),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:x?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!x,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Jo="그 밖의 일정";function B1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>au(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Jo}))],[d,m]=O.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var N;return(((N=y.duration)==null?void 0:N.trim())||Jo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(q1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Jo)===p}),placeName:s.place.name},x)},p))]})}function q1({tab:s,items:r,placeName:o}){const u=O.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=au(v).length,{item:v,start:y}})},[r]),[f,d]=O.useState(0),m=O.useRef(null),x=O.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(Mn,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>au(p).flatMap((y,N)=>{const z=n.jsx(H1,{item:p,badge:y.label??p.duration??`${N+1}일차`,startTime:y.startTime,stops:y.stops,first:N===0,placeName:o},`${p.name}-${v}-${N}`);return N===0?[z]:[n.jsx(L1,{},`${p.name}-${v}-c${N}`),z]}))})]})}function $1(){const s=P(),r=Wt(s,"video"),[o,u]=O.useState(),f=O.useRef(null),[d,m]=O.useState({prev:!1,next:!0}),x=O.useCallback(()=>{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=O.useCallback(v=>{const y=f.current;if(!y)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(ku({box:f,interval:Cu,advance:()=>Wp(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const N=V0(v.url),z=Z0(v.url),j=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:J0(N),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:T=>{N&&(T.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:K0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Ep,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Ep,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Ep({dir:s,onClick:r,disabled:o}){const u=s==="prev"?Ua:ha;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Y1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},G1=s=>[{id:"songs",label:"가요 다방",Component:lx},{id:"people",label:"인물 열전",Component:ax},{id:"chronicle",label:"시간의 골목",Component:nx},{id:"reading",label:s,Component:sx},{id:"postcard",label:"오늘의 엽서",Component:ix}];function X1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=G1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=O.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Y1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const Q1={open:"진행 중",soon:"곧 시작",closed:"종료"};function zp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Fo(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&Q1[r]}function Wo(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function V1(){const s=P(),r=Wt(s,"event"),[o,u]=O.useState();O.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=O.useState(null),m=O.useCallback(()=>d(null),[]);if(O.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?zp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?zp(p,o):void 0,N=Fo(p,y),z=Wo(p),j=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&N!=="공지"?Ze:Ft,color:y==="open"&&N!=="공지"?ma:dl,borderColor:y==="open"&&N!=="공지"?Ze:Se},children:N}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Fo(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Fo(x,g)}),Wo(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Wo(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const Z1={songs:lx,daily:z1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:A1,itinerary:B1,video:$1,event:V1,story:X1},K1="/v1/site/review",J1="/v1/site/reviews",Tp=5,Ap=500;function F1(){const s=P(),[r,o]=O.useState(s.reviews??[]),u=O.useRef(Date.now()),[f,d]=O.useState(0),[m,x]=O.useState(""),[g,p]=O.useState(!1),[v,y]=O.useState(!1),[N,z]=O.useState(null),j=s.site.placeId,T=O.useCallback(async()=>{try{const G=await fetch(`${J1}?place_id=${encodeURIComponent(j)}`);if(!G.ok)return;const L=await G.json();Array.isArray(L==null?void 0:L.items)&&o(L.items)}catch{}},[j]);O.useEffect(()=>{u.current=Date.now(),T()},[T]),O.useEffect(()=>{if(!v)return;u.current=Date.now();const G=Z=>{Z.key==="Escape"&&y(!1)},L=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",G),()=>{document.body.style.overflow=L,window.removeEventListener("keydown",G)}},[v]);async function R(G){if(G.preventDefault(),g)return;const L=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(K1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(L.get("nickname")??"")||null,consent:L.get("consent")==="on",company:String(L.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await T())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const U=Math.ceil(r.length/Tp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,L)=>n.jsxs("li",{hidden:Math.floor(L/Tp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:vu(G.publishedAt)})]})]},G.reviewId))}),U>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:U},(G,L)=>n.jsx("button",{type:"button",onClick:()=>d(L),"aria-current":L===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:L===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:L+1},L))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),v&&n.jsxs("div",{className:"fixed inset-0 z-50",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:()=>y(!1),className:"absolute inset-0 bg-black/55"}),n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"후기 남기기",className:"absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl p-5 pb-8",style:{backgroundColor:"var(--color-surface)"},children:n.jsxs("form",{onSubmit:R,className:"flex flex-col gap-3",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ap,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ap,"자 · 전화번호와 이메일은 적지 말아 주세요"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"남기면 바로 올라갑니다. 공개되는 글이니 연락처는 적지 말아 주세요."}),n.jsx("button",{type:"button",onClick:()=>y(!1),className:"tap text-muted text-[length:var(--fs-sm)]",children:"닫기"})]})})]})]})}function W1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const nu=1080,Ds=4,mt=56,su=190,Io="#1b1a15",I1="#efe7d3",_p="#bf2f1b";function cx(s=nu){return s-mt-su-mt-24}function ox(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function P1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const ej="/v1/image/relay?url=";async function tj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${ej}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function lj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Cp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=lj();d.clearRect(0,0,m,m),d.fillStyle=I1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await tj(r),v=m-mt*2,y=v/1.5,N=Math.max(v/g.width,y/g.height),z=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-j)/2,z,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const T=mt+y+36,R=m-mt-su,U=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(R,T),d.lineTo(R,m-mt-46),d.stroke(),d.fillStyle=Io,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,U),L=G.slice(0,Ds);if(G.length>Ds){let W=L[Ds-1];for(;W.length&&d.measureText(`${W}…`).width>U;)W=W.slice(0,-1);L[Ds-1]=`${W}…`}L.forEach((W,le)=>d.fillText(W,mt,T+50+le*60));const Z=R+su/2;d.strokeStyle=Io,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,T,88,108),d.setLineDash([]),d.fillStyle=Io,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,T+46),d.fillText("10원",Z,T+78),d.save(),d.translate(Z,T+210),d.rotate(-6*Math.PI/180),d.strokeStyle=_p,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=_p,d.font=`600 22px ${x}`;const X=P1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const kp="postcard.png";function aj(){const s=P(),r=(s.media??[]).filter(L=>L.url),o=O.useRef(null),[u,f]=O.useState(0),[d,m]=O.useState(""),[x,g]=O.useState(""),[p,v]=O.useState(!1),[y,N]=O.useState(!0);O.useEffect(()=>{var L;v(((L=window.matchMedia)==null?void 0:L.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(O.useEffect(()=>{const L=o.current,Z=r[u];if(!L||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N)},80);return()=>window.clearTimeout(X)},[u,d,z,j,r]),O.useEffect(()=>{var X;const L=o.current,Z=r[u];!L||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Cp(L,{photoUrl:Z.url,text:d,placeName:z,region:j}).then(N))},[]),r.length===0)return null;function T(L){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`“${L}”`,cx()).length<=Ds):!0}function R(){return new Promise(L=>{const Z=o.current;if(!Z)return L(null);Z.toBlob(X=>L(X),"image/png",.95)})}function U(L){const Z=URL.createObjectURL(L),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const L=await R();if(!L)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([L],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}U(L),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:nu,height:nu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(Vs,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((L,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:L.url,alt:"",loading:"lazy",className:"size-full object-cover"})},L.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:L=>{T(L.target.value)&&m(L.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void R().then(L=>L&&U(L)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(rj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(cj,{}),n.jsx(kn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Ht(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const sj=24,ij="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function rj(){const s=P(),r=ux(),[o,u]=O.useState(!1);O.useEffect(()=>{const d=()=>u(window.scrollY>sj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:ij},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function cj(){var p,v,y,N;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Hs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Hs(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Xs(o.updatedAt)})]})]})]})})}const oj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,uj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function fj({children:s}){var v,y,N,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...La(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var T;return j.enabled&&((T=j.name)==null?void 0:T.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:uj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:oj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,T)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":T===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${T===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,T)=>n.jsxs("li",{className:"flex items-center gap-4",children:[T>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Hs(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Xs(r.site.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function dj({children:s}){var N,z,j,T;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=La(r),g=Ke(r)[0],p=mu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(R=>R.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(R=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:R.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:R.value})]},R.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(R=>n.jsx("li",{children:n.jsx("a",{href:R.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:R.label})},R.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((T=o.legal)==null?void 0:T.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Xs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(kn,{})]})}const mj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,hj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function pj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:hj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:mj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(uu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Up,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(kn,{})]})}function xj({children:s}){var p,v,y,N;const r=P(),{place:o,site:u}=r,f=Vp(),d=gj(f),m=Ke(r)[0],x=mu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Bs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const j=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Bs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Xs(u.updatedAt)})]})]})]})}),n.jsx(kn,{})]})}function gj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=O.useState("");return O.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function bj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Ly,info:qy,rooms:Zo,menu:Zo,programs:Zo,booking:r?mp:r1,space:c1,inquiry:o1,exhibition:u1,photos:S1,festival:m1,local:p1,weather:N1,map:yp,faq:w1,...Z1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(op,{})]},f.id))}),!Ht(s,"map")&&n.jsx(yp,{}),r&&!Av(s,"booking")&&n.jsx(mp,{}),!Ht(s,"intro")&&n.jsx(op,{}),n.jsx(F1,{}),n.jsx(aj,{}),Ht(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(W1,{})})]})}function iu({payload:s}){const r=Qp(s.theme.templateId),o=r==="reservation"?nj:r==="oasi"?fj:r==="studio"?dj:r==="pastel"?pj:r==="editorial"?xj:vj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(bj,{})})})}function vj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(kn,{})]})}function yj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const jj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Nj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${jj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),Mp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Sj(){return O.useEffect(()=>Uu(!0),[]),null}async function wj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(yj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Nj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}Po.createRoot(hr).render(n.jsxs(O.StrictMode,{children:[n.jsx(iu,{payload:u}),n.jsx(Sj,{})]})),Uu(!0)}const Op=new URLSearchParams(window.location.search).get("placeId");Mp?Po.hydrateRoot(hr,n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:Mp})})):Op?wj(Op).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CL0twHh3.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{Po.createRoot(hr).render(n.jsx(O.StrictMode,{children:n.jsx(iu,{payload:s})}))});export{Vh as F,it as L,da as P,$0 as S,Ej as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-qQS9zNpb.js b/solution/site/scripts/mockup/vendor/retired/index-qQS9zNpb.js new file mode 100644 index 0000000..ff59117 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-qQS9zNpb.js @@ -0,0 +1,356 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const j0="modulepreload",N0=function(s){return"/"+s},kh={},S0=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=N0(p),p in kh)return;kh[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const j=document.createElement("link");if(j.rel=v?"stylesheet":j0,v||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),v)return new Promise((z,N)=>{j.addEventListener("load",z),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var Lo={exports:{}},Cs={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mh;function w0(){if(Mh)return Cs;Mh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Cs.Fragment=r,Cs.jsx=o,Cs.jsxs=o,Cs}var Oh;function E0(){return Oh||(Oh=1,Lo.exports=w0()),Lo.exports}var n=E0(),Bo={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function z0(){if(Dh)return ue;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),j=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=j&&w[j]||w["@@iterator"],typeof w=="function"?w:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function H(w,q,J){this.props=w,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,q,"setState")},H.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(w,q,J){this.props=w,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,A(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(w,q,J){var F=J.ref;return{$$typeof:s,type:w,key:q,ref:F!==void 0?F:null,props:J}}function xe(w,q){return le(w.type,q,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function K(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(w,q){return typeof w=="object"&&w!==null&&w.key!=null?K(""+w.key):q.toString(36)}function ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(V,V):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,q,J,F,re){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var oe=!1;if(w===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(w.$$typeof){case s:case r:oe=!0;break;case v:return oe=w._init,M(oe(w._payload),q,J,F,re)}}if(oe)return re=re(w),oe=F===""?"."+Xe(w,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),M(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||w&&w.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(w))for(var Te=0;Te>>1,Ne=M[pe];if(0>>1;pef(J,ae))Ff(re,J)?(M[pe]=re,M[F]=ae,pe=F):(M[pe]=J,M[q]=ae,pe=q);else if(Ff(re,ae))M[pe]=re,M[F]=ae,pe=F;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],v=1,y=null,j=3,z=!1,N=!1,A=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(M){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=M)u(p),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=o(p)}}function X(M){if(A=!1,Z(M),!N)if(o(g)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-M)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leM&&xe());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,j=y.priorityLevel;var Ne=pe(y.expirationTime<=M);if(M=s.unstable_now(),typeof Ne=="function"){y.callback=Ne,Z(M),Q=!0;break t}y===o(g)&&u(g),Z(M)}else u(g);y=o(g)}if(y!==null)Q=!0;else{var w=o(p);w!==null&&ie(X,w.startTime-M),Q=!1}}break e}finally{y=null,j=ae,z=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(M,Q){Y=H(function(){M(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125pe?(M.sortIndex=ae,r(p,M),o(g)===null&&M===o(p)&&(A?(G(Y),Y=-1):A=!0,ie(X,ae-pe))):(M.sortIndex=Ne,r(g,M),N||z||(N=!0,V||(V=!0,K()))),M},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(M){var Q=j;return function(){var ae=j;j=Q;try{return M.apply(this,arguments)}finally{j=ae}}}})(Yo)),Yo}var Hh;function A0(){return Hh||(Hh=1,$o.exports=T0()),$o.exports}var Go={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lh;function _0(){if(Lh)return xt;Lh=1;var s=ou();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=_0(),Go.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function k0(){if(qh)return ks;qh=1;var s=A0(),r=ou(),o=C0();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=w(null),re=w(null),fe=w(null),oe=w(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=eh(t),e=th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=th(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),zs._currentValue=ae)}var te,Ce;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ce=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Dn=s.unstable_shouldYield,Rn=s.unstable_requestPaint,pt=s.unstable_now,Zs=s.unstable_getCurrentPriorityLevel,Ks=s.unstable_ImmediatePriority,Un=s.unstable_UserBlockingPriority,Ha=s.unstable_NormalPriority,Hn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Ln=s.log,Bn=s.unstable_setDisableYieldValue,sl=null,bt=null;function il(e){if(typeof Ln=="function"&&Bn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(sl,e)}catch{}}var vt=Math.clz32?Math.clz32:Js,Sr=Math.log,wr=Math.LN2;function Js(e){return e>>>=0,e===0?32:31-(Sr(e)/wr|0)|0}var La=256,pa=262144,xa=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ba(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ws(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function Er(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ox(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var px=/[\n"\\]/g;function $t(e){return e.replace(px,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Mr(e,h,qt(t)):l!=null?Mr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Zu(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Cr(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Cr(e)}function Mr(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hr=!1;if(jl)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Hr=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Hr=!1}var $l=null,Lr=null,li=null;function ef(){if(li)return li;var e,t=Lr,l=t.length,a,i="value"in $l?$l.value:$l.textContent,c=i.length;for(e=0;e=Zn),rf=" ",cf=!1;function of(e,t){switch(e){case"keyup":return Gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Qx(e,t){switch(e){case"compositionend":return uf(t);case"keypress":return t.which!==32?null:(cf=!0,rf);case"textInput":return e=t.data,e===rf&&cf?null:e;default:return null}}function Vx(e,t){if(Ja)return e==="compositionend"||!Gr&&of(e,t)?(e=ef(),li=Lr=$l=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=bf(l)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eg=jl&&"documentMode"in document&&11>=document.documentMode,Fa=null,Zr=null,Wn=null,Kr=!1;function Nf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kr||Fa==null||Fa!==ei(a)||(a=Fa,"selectionStart"in a&&Vr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Wn&&Fn(Wn,a)||(Wn=a,a=Ji(Zr,"onSelect"),0>=h,i-=h,cl=1<<32-vt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=k(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(E=c(ee,E,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=O(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),E=c(ye,E,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(oa){return t(T,oa)}),je&&Sl(T,me),ne}function se(T,E,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=E,me=E=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var oa=k(T,ee,Ee.value,B);if(oa===null){ee===null&&(ee=ye);break}e&&ee&&oa.alternate===null&&t(T,ee),E=c(oa,E,me),we===null?ne=oa:we.sibling=oa,we=oa,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=O(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),E=c(Ee,E,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(y0){return t(T,y0)}),je&&Sl(T,me),ne}function He(T,E,_,B){if(typeof _=="object"&&_!==null&&_.type===A&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case z:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===A){if(E.tag===7){l(T,E.sibling),B=i(E,_.props.children),B.return=T,T=B;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&Ta(ne)===E.type){l(T,E.sibling),B=i(E,_.props),as(B,_),B.return=T,T=B;break e}l(T,E);break}else t(T,E);E=E.sibling}_.type===A?(B=Na(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=di(_.type,_.key,_.props,null,T.mode,B),as(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){l(T,E.sibling),B=i(E,_.children||[]),B.return=T,T=B;break e}else{l(T,E);break}else t(T,E);E=E.sibling}B=tc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=Ta(_),He(T,E,_,B)}if(ie(_))return I(T,E,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,E,_,B)}if(typeof _.then=="function")return He(T,E,vi(_),B);if(_.$$typeof===R)return He(T,E,pi(T,_),B);yi(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(l(T,E.sibling),B=i(E,_),B.return=T,T=B):(l(T,E),B=ec(_,T.mode,B),B.return=T,T=B),h(T)):l(T,E)}return function(T,E,_,B){try{ls=0;var ne=He(T,E,_,B);return cn=null,ne}catch(ee){if(ee===rn||ee===gi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var _a=Qf(!0),Vf=Qf(!1),Vl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fi(e),_f(e,null,l),t}return ui(e,a,t,l),fi(e)}function ns(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}function pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function ss(){if(xc){var e=sn;if(e!==null)throw e}}function is(e,t,l,a){xc=!1;var i=e.updateQueue;Vl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,O=k!==b.lane;if(O?(ve&k)===k:(a&k)===k){k!==0&&k===nn&&(xc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;k=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,k);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,k=typeof I=="function"?I.call(He,$,k):I,k==null)break e;$=y({},$,k);break e;case 2:Vl=!0}}k=b.callback,k!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[k]:O.push(k))}else O={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=O,S=$):U=U.next=O,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;O=b,b=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),Pl|=h,e.lanes=h,e.memoizedState=$}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Kf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=M.T,b={};M.T=b,Rc(e,!1,t,l);try{var S=i(),C=M.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=og(S,a);os(e,t,U,Ht(e))}else os(e,t,a,Ht(e))}catch($){os(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}function pg(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=zd(e).queue;Ed(e,i,t,ae,l===null?pg:function(){return Td(e),l(a)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Td(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Ht())}function Dc(){return ut(zs)}function Ad(){return Fe().memoizedState}function _d(){return Fe().memoizedState}function xg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Zl(l);var a=Kl(t,e,l);a!==null&&(_t(a,t,l),ns(a,t,l)),t={cache:oc()},e.payload=t;return}t=t.return}}function gg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)?kd(t,l):(l=Ir(e,t,l,a),l!==null&&(_t(l,e,a),Md(l,t,a)))}function Cd(e,t,l){var a=Ht();os(e,t,l,a)}function os(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))kd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return ui(e,t,i,0),Le===null&&oi(),!1}catch{}finally{}if(l=Ir(e,t,i,a),l!==null)return _t(l,e,a),Md(l,t,a),!0}return!1}function Rc(e,t,l,a){if(a={lane:2,revertLane:ho(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(u(479))}else t=Ir(e,l,a,2),t!==null&&_t(t,e,2)}function Ci(e){var t=e.alternate;return e===de||t!==null&&t===de}function kd(e,t){un=Si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Md(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Uu(e,l)}}var us={readContext:ut,use:zi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};us.useEffectEvent=Qe;var Od={readContext:ut,use:zi,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:xd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:kc,useDeferredValue:function(e,t){var l=yt();return Mc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=Ed.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=yt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||ed(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,xd(ld.bind(null,a,c,e),[e]),a.flags|=2048,dn(9,{destroy:void 0},td.bind(null,a,c,l,t),null),l},useId:function(){var e=yt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[St]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,l)),e||Xl(t,!0)}else e=Fi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ln(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&bo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Je),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ds(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ni(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Je,Je.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>qi&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ni(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>qi&&l!==536870912&&(t.flags|=128,i=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Je.current,J(Je,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),bc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(za),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ng(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Je),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),bc(),e!==null&&q(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function am(e,t){switch(ac(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Je);break;case 10:El(t.type);break;case 22:case 23:Dt(t),bc(),e!==null&&q(za);break;case 24:El(We)}}function ms(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function nm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Kf(t,l)}catch(a){Me(e,e.return,a)}}}function sm(e,t,l){l.props=ka(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function hs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function im(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Fc(e,t,l){try{var a=e.stateNode;Xg(a,e.type,l,t),a[St]=t}catch(i){Me(e,e.return,i)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Ui(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ui(e,t,l),e=e.sibling;e!==null;)Ui(e,t,l),e=e.sibling}function cm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(c){Me(e,e.return,c)}}var Cl=!1,et=!1,Pc=!1,om=typeof WeakSet=="function"?WeakSet:Set,st=null;function Sg(e,t){if(e=e.containerInfo,jo=ar,e=jf(e),Vr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,$=e,k=null;t:for(;;){for(var O;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(O=$.firstChild)!==null;)k=$,$=O;for(;;){if($===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(O=$.nextSibling)!==null)break;$=k,k=$.parentNode}$=O}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(No={focusedElem:e,selectionRange:l},ar=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=ph("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=vf(b,se),E=vf(b,He);if(T&&E&&(O.rangeCount!==1||O.anchorNode!==T.node||O.anchorOffset!==T.offset||O.focusNode!==E.node||O.focusOffset!==E.offset)){var _=$.createRange();_.setStart(T.node,T.offset),O.removeAllRanges(),se>He?(O.addRange(_),O.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),O.addRange(_))}}}}for($=[],O=b;O=O.parentNode;)O.nodeType===1&&$.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ar=!!jo,No=jo=null}finally{Ae=i,Q.p=a,M.T=l}}e.current=t,lt=2}}function Um(){if(lt===2){lt=0;var e=ta,t=gn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var i=Ae;Ae|=4;try{um(e,t.alternate,t)}finally{Ae=i,Q.p=a,M.T=l}}lt=3}}function Hm(){if(lt===4||lt===3){lt=0,Rn();var e=ta,t=gn,l=Rl,a=Sm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,gn=ta=null,Lm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ea=null),Tr(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,M.T=null,l=io,io=null;var c=ta,h=Rl;if(lt=0,gn=ta=null,Rl=0,(Ae&6)!==0)throw Error(u(331));var b=Ae;if(Ae|=4,ym(c.current),gm(c,c.current,h,l),Ae=b,ys(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,M.T=a,Lm(e,t)}}function qm(e,t,l){t=Gt(l,t),t=Bc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(qn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)qm(e,e,l);else for(;t!==null;){if(t.tag===3){qm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){e=Gt(l,e),l=$d(2),a=Kl(t,l,2),a!==null&&(Yd(l,a,t,e),qn(a,2),fl(a));break}}t=t.return}}function uo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new zg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(lo=!0,i.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-Bi?(Ae&2)===0&&bn(e,0):ao|=l,xn===ve&&(xn=0)),fl(e)}function $m(e,t){t===0&&(t=Ws()),e=ja(e,t),e!==null&&(qn(e,t),fl(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$m(e,l)}function Og(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),$m(e,l)}function Dg(e,t){return Pt(e,t)}var Vi=null,yn=null,fo=!1,Zi=!1,mo=!1,aa=0;function fl(e){e!==yn&&e.next===null&&(yn===null?Vi=yn=e:yn=yn.next=e),Zi=!0,fo||(fo=!0,Ug())}function ys(e,t){if(!mo&&Zi){mo=!0;do for(var l=!1,a=Vi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Qm(a,c))}else c=ve,c=Ba(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(l=!0,Qm(a,c));a=a.next}while(l);mo=!1}}function Rg(){Ym()}function Ym(){Zi=fo=!1;var e=0;aa!==0&&Vg()&&(e=aa);for(var t=pt(),l=null,a=Vi;a!==null;){var i=a.next,c=Gm(a,t);c===0?(a.next=null,l===null?Vi=i:l.next=i,i===null&&(yn=l)):(l=a,(e!==0||(c&3)!==0)&&(Zi=!0)),a=i}lt!==0&<!==5||ys(e),aa!==0&&(aa=0)}function Gm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&Pm($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function fh(e,t,l){var a=jn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),uh.has(i)||(uh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function t0(e){Ul.D(e),fh("dns-prefetch",e,null)}function l0(e,t){Ul.C(e,t),fh("preconnect",e,t)}function a0(e,t,l){Ul.L(e,t,l);var a=jn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=Nn(e);break;case"script":c=Sn(e)}Jt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ws(c))||t==="script"&&a.querySelector(Es(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function n0(e,t){Ul.m(e,t);var l=jn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Sn(e)}if(!Jt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Es(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function s0(e,t,l){Ul.S(e,t,l);var a=jn;if(a&&e){var i=Ga(a).hoistableStyles,c=Nn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(ws(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&_o(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ii(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function i0(e,t){Ul.X(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=y({src:e,async:!0},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function r0(e,t){Ul.M(e,t);var l=jn;if(l&&e){var a=Ga(l).hoistableScripts,i=Sn(e),c=a.get(i);c||(c=l.querySelector(Es(i)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Co(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function dh(e,t,l,a){var i=(i=fe.current)?Wi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Nn(l.href),l=Ga(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Nn(l.href);var c=Ga(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||c0(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(l),l=Ga(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+$t(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function mh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function c0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function Sn(e){return'[src="'+$t(e)+'"]'}function Es(e){return"script[async]"+e}function hh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),Ii(a,l.precedence,e),t.instance=a;case"stylesheet":i=Nn(l.href);var c=e.querySelector(ws(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=mh(l),(i=Jt.get(i))&&_o(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,Ii(c,l.precedence,e),t.instance=c;case"script":return c=Sn(l.src),(i=e.querySelector(Es(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=y({},l),Co(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ii(a,l.precedence,e));return t.instance}function Ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function o0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Nn(a.href),c=t.querySelector(ws(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=mh(a),(i=Jt.get(i))&&_o(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=er.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ko=0;function f0(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0ko?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(d0,e),tr=null,er.call(e))}function d0(e,t){if(!(t.state.loading&4)){var l=tr.get(e);if(l)var a=l.get(null);else{l=new Map,tr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),qo.exports=k0(),qo.exports}var tu=M0();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O0=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D0=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Yh=s=>{const r=D0(s);return r.charAt(0).toUpperCase()+r.slice(1)},kp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),R0=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var U0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H0=D.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>D.createElement("svg",{ref:g,...U0,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:kp("lucide",f),...!d&&!R0(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,v])=>D.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _e=(s,r)=>{const o=D.forwardRef(({className:u,...f},d)=>D.createElement(H0,{ref:d,iconNode:r,className:kp(`lucide-${O0(Yh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Yh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",L0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B0=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],q0=_e("bed-double",B0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Y0=_e("calendar-check",$0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],X0=_e("calendar-days",G0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q0=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],V0=_e("car",Q0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uu=_e("check",Z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fu=_e("chevron-down",K0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zn=_e("chevron-left",J0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const F0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ra=_e("chevron-right",F0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],I0=_e("clock",W0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],eb=_e("cloud-rain",P0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],lb=_e("cloud-snow",tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ab=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],nb=_e("cloud",ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ib=_e("copy",sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],cb=_e("external-link",rb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ob=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],ub=_e("instagram",ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xr=_e("map-pin",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",mb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],du=_e("message-circle",hb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pb=[["path",{d:"M5 12h14",key:"1ays0h"}]],xb=_e("minus",pb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Xo=_e("navigation",gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jt=_e("phone",bb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],yb=_e("play",vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nb=_e("plus",jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],wb=_e("rotate-ccw",Sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],zb=_e("sun",Eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tb=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Ab=_e("utensils",Tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _b=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gr=_e("x",_b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],kb=_e("youtube",Cb),Dp=D.createContext(null);function Mb({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=D.useContext(Dp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function Ob(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function Db(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function Rb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function Ub(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function Hb(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Gh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function Lb(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=D.useState(0),[f,d]=D.useState(!1),[m,x]=D.useState(!1),[g,p]=D.useState({now:0,total:0}),[v,y]=D.useState({}),j=D.useRef(null),z=D.useRef(null),N=D.useRef(null),A=r.length;D.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const L=D.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=z.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}y(Y)},[]);if(D.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=z.current)!=null&&xe.contains(W)||x(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),D.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:z,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(Ob,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(Rb,{}):n.jsx(Db,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(X=>!X),children:n.jsx(Ub,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:v,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(Hb,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||g.now>0)?`${Gh(g.now)}${g.total?` / ${Gh(g.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const da={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},Bb={OWNER:1,CRAWL:3,TEMPLATE:5},Xh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},qb=[Xh.VERIFIED,Xh.CORRECTED];function Rp(s){return qb.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},wj={PUBLISHED:3};function Tn(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of Tn(s))r.set(o.key,o);return r}function ua(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function Ct(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?$b(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function $b(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function mu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Yb(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function hu(s){return s.map(r=>({...r,facts:Tn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Gb={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Xb(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Qb(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Vb(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function Zb(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const ur={items:[],unverified:0,sourced:0};function Kb(s,r){var p,v;const o=y=>{const j=s.slice(0,Math.max(0,y)),z=j.split(` +`).length,N=y-j.lastIndexOf(` +`);return`${z}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(v=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:v[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function Jb(s,r){const o=Gb[s],u=(r??"").trim();if(!o||!u)return ur;let f;try{f=JSON.parse(u)}catch(y){return{...ur,error:Kb(u,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...ur,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...ur,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[o]=="string"&&y[o].trim().length>0);let p=0,v=0;for(const y of g){const j=y;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(v+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:v}}const Fb=1260,Wb=60,Ib="10:00",Qh=["봄","여름","가을","겨울"];function Vh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function fr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function Pb(s){const r=Vh(s.startTime??"")??Vh(Ib)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??Wb),g=u+m;if(g+x>Fb){f+=1;continue}o.push({stop:d,time:fr(g),until:fr(g+x),move:m}),u=g+x}return{stops:o,from:fr(r),to:fr(u),totalMinutes:u-r,dropped:f}}function ev(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Qh[o];return r%3===0&&s.getDate()<=15?[Qh[(o+3)%4],u]:[u]}function Zh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Kh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Zh(s),[m,x,g]=Zh(r),p=(y,j)=>Math.round(y+(j-y)*o),v=y=>y.toString(16).padStart(2,"0");return`#${v(p(u,m))}${v(p(f,x))}${v(p(d,g))}`}function tv(s){return{surface:Kh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Kh(s.bg,s.text,.2)}}const Hp={[da.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[da.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[da.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function lv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=ua(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Jh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function av(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Jh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Jh.includes(f.channel)&&!av(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function pu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??lv(s)[0]}function xu(s){return Tn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:mu(r),value:gu(r,s.facts)})).filter(r=>r.value!=="")}function gu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=Ct(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const nv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function sv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function hl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return hu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===da.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=Ct(u.facts,m),g=((p=u.facts.find(v=>v.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:sv(u.facts.filter(m=>!nv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:mu(m),value:gu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:iv(u),prices:cv(u),href:`/${r.path}/${u.slug}`}})}function iv(s){var d,m;const r=Ct(s.facts,"price_range");if(r)return r;const o=Number((d=Ct(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=Ct(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const rv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function cv(s){return Ct(s.facts,"price_range")?[]:Ct(s.facts,"weekday_price")?rv.map(([r,o])=>({label:o,value:Ct(s.facts,r)??"문의"})):[]}function ov(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function uv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function bu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function fv(s){return Yb(s.faqs)}function dv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function mv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=Jb(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function An(s,r){const o=new Map(Tn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:mu(u),value:gu(u,s.facts)})).filter(u=>u.value!=="")}function hv(s,r){return An(s,[r])[0]}const pv=["reservation_required","reservation_channel"];function xv(s){return An(s,pv)}const gv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function bv(s){return An(s,gv)}const vv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function yv(s){return An(s,vv)}const jv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ua(s){return An(s,jv).slice(0,4)}function _n(s){const r=hl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Ke=Bp,wv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Ev(s){return hu(s.units).map(r=>{const o=Ct(r.facts,"standard_capacity"),u=Ct(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=Ct(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function $p(s){if(s.place.category!==da.LODGING)return null;const r={offers:Ev(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:An(s,wv),links:Ke(s),contacts:Cn(s).filter(u=>!Ke(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function zv(s,r){return s.theme.sections.some(o=>o.id===r)}function Cn(s){return Sv(s,Nv)}function gt(s,r){const o=Bs(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function vu(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${pl(s)}에서 예약`}function Tv(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:r.label,href:"#units",show:s.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(Lb,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function ha({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===da.LODGING,[f,d]=D.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(v=>(v.kind??"general")==="general").map(v=>v.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(D.useEffect(()=>{if(!u)return;const v=window.matchMedia("(prefers-reduced-motion: reduce)"),y=window.setInterval(()=>{!document.hidden&&!v.matches&&d(j=>(j+1)%x.length)},6e3);return()=>window.clearInterval(y)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((v,y)=>n.jsxs("span",{children:[y>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${y*55}ms`},children:v})})]},y))},f)]})}function br(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function _v(s){return Cv(s).join(" ")}function Cv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=ua(o,"check_in_time"),m=ua(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=ua(o,"business_hours")??ua(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=ua(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),ua(o,"parking")==="true"){const v=ua(o,"parking_capacity");u.push(v?`주차 ${v}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const kv=6e3,Mv=5;function Ov(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(N=>{var A;return(A=N.alt)==null?void 0:A.trim()}).sort((N,A)=>Number(A.isPrimary)-Number(N.isPrimary)).slice(0,Mv),[g,p]=D.useState(0),[v,y]=D.useState(!1),j=D.useRef(null),z=D.useCallback(N=>p(A=>(A+N+x.length)%x.length),[x.length]);return D.useEffect(()=>{if(v||x.length<2)return;const N=setInterval(()=>z(1),kv);return()=>clearInterval(N)},[v,z,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:()=>y(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const A=j.current;if(j.current=null,A===null)return;const L=N.changedTouches[0].clientX-A;Math.abs(L)>40&&z(L<0?1:-1)},children:[x.map((N,A)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:A===0?"high":"low",loading:A===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:A===g?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Fh,{dir:"prev",onClick:()=>z(-1)}),n.jsx(Fh,{dir:"next",onClick:()=>z(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((N,A)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(A),"aria-label":`${A+1}번째 사진`,"aria-current":A===g,className:`h-1.5 rounded-full bg-current transition-all ${A===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]})]})})]})}function Fh({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s).slice(0,3),f=_n(s),d=Ke(s),m=hv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Rv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Yp(s){return Rv[s??""]??"default"}function vr(){return Yp(P().theme.templateId)}const mr=5,lu=1.8,Uv=3;function Hv(s){const r=s*mr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(mr)} { opacity: 1; } + ${o(mr+lu)} { opacity: 0; } + ${o(r-lu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Lv(s,r){return((r-s)%r*mr+lu).toFixed(1)}function Bv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Ke(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Uv),g=f?{href:f.url,label:`${Bs(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Hv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,v)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:v===0?"high":v0?m:xu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(p)})},p.url))})]})}function $v(){const s=P(),r=bu(s),o=br(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ua(s),f=_n(s),d=Ke(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var v;return(v=p.alt)==null?void 0:v.trim()}).sort((p,v)=>Number(v.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(ha,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const qs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Gv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Xv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Wh(s){return String(s).padStart(2,"0")}function Gp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of dv(s)){const m=Gv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Wh(u.length+1),label:x||Xv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Wh(u.length+1),label:"오시는 길",anchor:"location"}),u}function yu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Gp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Qv(){const s=P(),{place:r,narrative:o}=s,u=br(s),f=ht(s),d=hl(s),m=Ua(s),x=_n(s),g=Ke(s)[0],p=Cn(s)[0],v=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(z=>!!z);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:qs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[v&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(ha,{children:v})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[pl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(z=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:z.label}),n.jsx("dd",{className:"text-right font-semibold",children:z.value})]},z.label))})]})]})})}function Vv(){var g;const s=P(),r=vr();if(r==="reservation")return n.jsx(Bv,{});if(r==="oasi")return n.jsx(qv,{});if(r==="studio")return n.jsx($v,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Qv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Ov,{});if(o==="hero.split")return n.jsx(Dv,{});const{place:u,narrative:f}=s,d=br(s),m=ht(s);Ke(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(xr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(ha,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(fu,{className:"size-4"})]})]})]})})}function ju(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Qs(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Zv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ih(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Kv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Nu(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Jv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Nu(s))},${r},${o}`}function Fv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Nu(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Nu(s))}/-/transit`}function Wv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Iv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function Su({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const Pv={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=vr(),v=p==="reservation"?Su:p==="oasi"?wu:p==="studio"?Eu:p==="pastel"?zu:p==="editorial"?yu:ey;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...Pv[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(v,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ey({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ty(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ph(s){return ty(s)||Array.isArray(s)}function ly(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tu(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!Ph(x)||!Ph(g)?x===g:Tu(x,g)})}function ep(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ay(s,r){if(s.length!==r.length)return!1;const o=ep(s),u=ep(r);return o.every((f,d)=>{const m=u[d];return Tu(f,m)})}function Au(s){return typeof s=="number"}function au(s){return typeof s=="string"}function yr(s){return typeof s=="boolean"}function tp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function _u(s){return Math.sign(s)}function Us(s,r){return Ge(s-r)}function ny(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Us(Ge(s),Ge(r));return Ge(o/s)}function sy(s){return Math.round(s*100)/100}function $s(s){return Ys(s).map(Number)}function al(s){return s[Vs(s)]}function Vs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Vs(s)}function lp(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Ys(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Ys(u).forEach(f=>{const d=o[f],m=u[f],x=tp(d)&&tp(m);o[f]=x?Qp(d,m):m}),o),{})}function nu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function iy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return au(s)?o[s](g):s(r,g,p)}return{measure:m}}function Gs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function ry(s,r,o,u){const f=Gs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function v(){z(),f.clear()}function y(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const G=x/d;u(G),g&&(g=r.requestAnimationFrame(y))}function j(){g||(g=r.requestAnimationFrame(y))}function z(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function N(){m=null,x=0}return{init:p,destroy:v,start:j,stop:z,update:o,render:u}}function cy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=v(),g=y();function p(N){const{height:A,width:L}=N;return u?A:L}function v(){return u?"top":o?"right":"left"}function y(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:j}}function Da(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Vp(s,r,o){const{constrain:u}=Da(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function x(){return d}function g(j){return d=m(j),y}function p(j){return v().set(x()+j)}function v(){return Vp(s,x(),o)}const y={get:x,set:g,add:p,clone:v};return y}function oy(s,r,o,u,f,d,m,x,g,p,v,y,j,z,N,A,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Gs(),W=Gs(),le=Da(50,225).constrain(z.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,M=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ce(tt){(yr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ce).add(De,"mousedown",Ce).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function w(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ce=te.nodeName||"";return X.includes(Ce)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ce){const De=y.add(_u(te)*-1),tt=v.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ce&&te.button!==0)&&(J(te.target)||(M=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!nu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),Nt=Us(De,Xe),It=Us(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=Nt>It,!Q)))return ze(te);const nl=d.pointerMove(te);Nt>A&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=v.byDistance(0,!1).index!==y.get(),tt=d.pointerUp(te)*F(),Nt=re(Z(tt),De),It=ny(tt,Nt),nl=K-10*It,Bt=H+It/50;Q=!1,M=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(Nt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return M}return{init:Ne,destroy:w,pointerDown:at}}function uy(s,r){let u,f;function d(y){return y.timeStamp}function m(y,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(nu(y,r)?y:y.touches[0])[N]}function x(y){return u=y,f=y,m(y)}function g(y){const j=m(y)-m(f),z=d(y)-d(u)>170;return f=y,z&&(u=y),j}function p(y){if(!u||!f)return 0;const j=m(f)-m(u),z=d(y)-d(u),N=d(y)-d(f)>170,A=j/z;return z&&!N&&Ge(A)>.1?A:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function fy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function dy(s){function r(u){return s*(u/100)}return{measure:r}}function my(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,v=[],y=!1;function j(L){return f.measureSize(m.measure(L))}function z(L){if(!d)return;p=j(s),v=u.map(j);function H(G){for(const R of G){if(y)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:v[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(G=>{(yr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{x.forEach(G=>g.observe(G))})}function N(){y=!0,g&&g.disconnect()}return{init:z,destroy:N}}function hy(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,v=s.get(),y=0;function j(){const V=u.get()-s.get(),Y=!g;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/g,m*=p,v+=m,s.add(m),W=v-y),x=_u(W),y=v,X}function z(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return g}function A(){return x}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return g=V,X}function Z(V){return p=V,X}const X={direction:A,duration:N,velocity:L,seek:j,settled:z,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function py(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Da(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function v(z){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",A=Ge(s[N]-r.get()),L=o.get()-r.get(),H=x.constrain(A/m);o.subtract(L*H),!z&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!A,Z=Cu(o,A);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:A}=x;return m.slice(N,A)}return{snapsContained:g,scrollContainLimit:x}}function gy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Da(f,u)}}function by(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Da(d,m);function p(j){return j===1?g(o.get()):j===-1?x(o.get()):!1}function v(j){if(!p(j))return;const z=s*(j*-1);u.forEach(N=>N.add(z))}return{loop:v}}function vy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function yy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=y().map(r.measure),p=j(),v=z();function y(){return x(u).map(A=>al(A)[m]-A[0][d]).map(Ge)}function j(){return u.map(A=>o[d]-A[d]).map(A=>-Ge(A))}function z(){return x(p).map(A=>A[0]).map((A,L)=>A+g[L])}return{snaps:p,snapsAligned:v}}function jy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=v();function v(){const j=m(d),z=!s||r==="keepSnaps";return o.length===1?[d]:z?j:j.slice(x,g).map((N,A,L)=>{const H=!A,G=Cu(L,A);if(H){const R=al(L[0])+1;return lp(R)}if(G){const R=Vs(d)-al(L)[0]+1;return lp(R,al(L)[0])}return N})}return{slideRegistry:p}}function Ny(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(N){return N.concat().sort((A,L)=>Ge(A)-Ge(L))[0]}function p(N){const A=s?m(N):x(N),L=r.map((G,R)=>({diff:v(G-A,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:A}}function v(N,A){const L=[N,N+o,N-o];if(!s)return N;if(!A)return g(L);const H=L.filter(G=>_u(G)===A);return H.length?g(H):al(L)-o}function y(N,A){const L=r[N]-f.get(),H=v(L,A);return{index:N,distance:H}}function j(N,A){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!A||R)return{index:H,distance:N};const Z=r[H]-G,X=N+v(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:y,shortcut:v}}function Sy(s,r,o,u,f,d,m){function x(y){const j=y.distance,z=y.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),z&&(o.set(r.get()),r.set(y.index),m.emit("select"))}function g(y,j){const z=f.byDistance(y,j);x(z)}function p(y,j){const z=r.clone().set(y),N=f.byIndex(z.get(),j);x(N)}return{distance:g,index:p}}function wy(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function v(z){if(!x)return;function N(A){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(A));Au(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",y,!1),r.forEach((A,L)=>{d.add(A,"focus",H=>{(yr(x)||x(z,H))&&N(L)},g)})}function y(z){z.code==="Tab"&&(p=new Date().getTime())}return{init:v}}function Os(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function x(j){return`translate3d(0px,${j}px,0px)`}function g(j){if(d)return;const z=sy(s.direction(j));z!==f&&(u.transform=o(z),f=z)}function p(j){d=!j}function v(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:v,to:g,toggleActive:p}}function Ey(s,r,o,u,f,d,m,x,g){const v=$s(f),y=$s(f).reverse(),j=H().concat(G());function z(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>z(le,W)>0?le.concat([xe]):le,[])}function A(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=A(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Os(-1),translate:Zp(s,g[ce]),target:()=>x.get()>ie?K:he}})}function H(){const Y=m[0],W=N(y,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(v,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=v.filter(le=>le!==Y);return z(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function zy(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(v){for(const y of v)if(y.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(v=>{f||(yr(o)||o(g,v))&&p(v)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function Ty(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(N=>{g||(N.forEach(A=>{const L=r.indexOf(A.target);f[L]=A}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>x.observe(N))}function v(){x&&x.disconnect(),g=!0}function y(N){return Ys(f).reduce((A,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&A.push(H),A},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const A=y(N);return N&&(d=A),N||(m=A),A}return{init:p,destroy:v,get:j}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,v=N(),y=A(),j=o.map(m),z=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[x]-G[x])}function A(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${g}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?j[R]+v:V?j[R]+y:Z[R+1][x]-G[x]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:z,startGap:v,endGap:y}}function _y(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:v,direction:y}=s,j=Au(o);function z(H,G){return $s(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?$s(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Vs(H),W=f[p]-d[X][p],le=f[p]-d[R][v],xe=!u&&V?y(m):0,ce=!u&&Y?y(x):0,K=Ge(le-ce-(W+xe));return Z&&K>r+g&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function A(H){return j?z(H,o):N(H)}return{groupSlides:A}}function Cy(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:v,loop:y,duration:j,dragFree:z,dragThreshold:N,inViewThreshold:A,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=fy(),le=W.measure(r),xe=o.map(W.measure),ce=cy(g,p),K=ce.measureSize(le),he=dy(K),Xe=iy(x,K),ie=!y&&!!G,M=y||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,M,f),w=_y(ce,K,L,y,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=yy(ce,Xe,le,xe,w),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=xy(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=gy(F,oe,y),Te=Vp(Vs(oe),v,y),at=Te.clone(),Oe=$s(o),te=({dragHandler:bl,scrollBody:Ln,scrollBounds:Bn,options:{loop:sl}})=>{sl||Bn.constrain(bl.pointerDown()),Ln.seek()},Ce=({scrollBody:bl,translate:Ln,location:Bn,offsetLocation:sl,previousLocation:bt,scrollLooper:il,slideLooper:vt,dragHandler:Sr,animation:wr,eventHandler:Js,scrollBounds:La,options:{loop:pa}},xa)=>{const rl=bl.settled(),Ba=!La.shouldConstrain(),Bl=pa?rl:rl&&Ba,Fs=Bl&&!Sr.pointerDown();Fs&&wr.stop();const Ws=Bn.get()*xa+bt.get()*(1-xa);sl.set(Ws),pa&&(il.loop(bl.direction()),vt.loop()),Ln.to(sl.get()),Fs&&Js.emit("settle"),Bl||Js.emit("scroll")},De=ry(u,f,()=>te(Hn),bl=>Ce(Hn,bl)),tt=.68,Nt=oe[Te.get()],It=Os(Nt),nl=Os(Nt),Bt=Os(Nt),Pt=Os(Nt),gl=hy(It,Bt,nl,Pt,j,tt),Dn=Ny(y,oe,F,ze,Pt),Rn=Sy(De,Te,at,gl,Dn,Pt,m),pt=vy(ze),Zs=Gs(),Ks=Ty(r,o,m,A),{slideRegistry:Un}=jy(ie,G,oe,fe,w,Oe),Ha=wy(s,o,Un,Rn,gl,Zs,m,V),Hn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:oy(ce,s,u,f,Pt,uy(ce,f),It,De,Rn,gl,Dn,Te,m,he,z,N,H,tt,X),eventStore:Zs,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:my(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:py(ze,Bt,Pt,gl,he),scrollLooper:by(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Dn,scrollTo:Rn,slideLooper:Ey(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ha,slidesHandler:zy(r,m,Z),slidesInView:Ks,slideIndexes:Oe,slideRegistry:Un,slidesToScroll:w,target:Pt,translate:Zp(ce,r)};return Hn}function ky(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(v=>v(r,p)),g}function d(p,v){return s[p]=u(p).concat([v]),g}function m(p,v){return s[p]=u(p).filter(y=>y!==v),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const My={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Oy(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Ys(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Ys(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Dy(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function pr(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Oy(f),m=Dy(d),x=Gs(),g=ky(),{mergeOptions:p,optionsAtMedia:v,optionsMediaQueries:y}=d,{on:j,off:z,emit:N}=g,A=ce;let L=!1,H,G=p(My,pr.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(au(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=au(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=Cy(s,V,Y,u,f,Oe,g);if(Oe.loop&&!te.slideLooper.canLoop()){const Ce=Object.assign({},Oe,{loop:!1});return le(Ce)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=v(G),Z=te||Z,W(),H=le(R),y([G,...Z.map(({options:Ce})=>Ce)]).forEach(Ce=>x.add(Ce,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ce=w();K(),xe(p({startIndex:Ce},Oe),te),g.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function he(){L||(L=!0,x.clear(),K(),g.emit("destroy"),g.clear())}function Xe(Oe,te,Ce){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ce||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function M(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==w()}function ae(){return H.index.add(-1).get()!==w()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function w(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:z,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:A,rootNode:oe,scrollNext:ie,scrollPrev:M,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:w,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>g.emit("init"),0),at}pr.globalOptions=void 0;function ku(s={},r=[]){const o=D.useRef(s),u=D.useRef(r),[f,d]=D.useState(),[m,x]=D.useState(),g=D.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return D.useEffect(()=>{Tu(o.current,s)||(o.current=s,g())},[s,g]),D.useEffect(()=>{ay(u.current,r)||(u.current=r,g())},[r,g]),D.useEffect(()=>{if(ly()&&m){pr.globalOptions=ku.globalOptions;const p=pr(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}ku.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=D.useRef(o);u.current=o,D.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),v=new IntersectionObserver(([A])=>{m=A.isIntersecting},{threshold:.25});v.observe(f);const y=window.matchMedia("(hover: hover) and (pointer: fine)").matches;y&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let j=!1;const z=A=>{const L=A.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,x())},N=()=>{j&&(j=!1,g())};return f.addEventListener("focusin",z),f.addEventListener("focusout",N),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),v.disconnect(),y&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",z),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Ry(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}function kn({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Kp,onSelect:g,onReady:p,className:v}){const y=x===!1?0:x,[j,z]=ku({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,A]=D.useState([]),[L,H]=D.useState(0),[G,R]=D.useState(!1),[Z,X]=D.useState(!1),V=D.useRef(null),Y=D.useId();D.useEffect(()=>{var Q;if(!z)return;const ie=()=>{H(z.selectedScrollSnap()),R(z.canScrollPrev()),X(z.canScrollNext())},M=()=>{A(z.scrollSnapList()),ie()};return M(),z.on("select",ie),z.on("reInit",M),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{z.off("select",ie),z.off("reInit",M)}},[z]),D.useEffect(()=>{if(!z)return;const ie=V.current,M=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return z.on("pointerDown",M),z.on("pointerUp",Q),()=>{z.off("pointerDown",M),z.off("pointerUp",Q)}},[z]),Jp({box:V,interval:y,advance:()=>!z||z.scrollSnapList().length<=1?!0:z.canScrollNext()?(z.scrollNext(),!0):!1});const W=D.useCallback(ie=>z==null?void 0:z.scrollTo(ie),[z]),le=D.useRef(g);le.current=g;const xe=D.useRef(p);xe.current=p,D.useEffect(()=>{var M;if(!z)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,z.selectedScrollSnap())};return ie(),z.on("select",ie),z.on("reInit",ie),(M=xe.current)==null||M.call(xe,{scrollTo:Q=>z.scrollTo(Q)}),()=>{z.off("select",ie),z.off("reInit",ie)}},[z]);const ce=D.useCallback(()=>z==null?void 0:z.scrollPrev(),[z]),K=D.useCallback(()=>z==null?void 0:z.scrollNext(),[z]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:v,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(ap,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(ap,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:`${m}rem`},id:Y,children:r})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,M)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(M),"aria-label":`${M+1}번째로`,"aria-current":M===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${M===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},M))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function jr({basis:s,children:r}){return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,"aria-roledescription":"슬라이드",children:r})}function ap({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Mu({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Ou({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Fp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function sp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Wp({children:s,initial:r=3,label:o}){const[u,f]=D.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Nr({open:s,onClose:r,label:o,children:u,wide:f}){return D.useEffect(()=>{if(!s)return;const d=x=>{x.key==="Escape"&&r()},m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",d),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",d)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 max-h-[88svh] overflow-auto rounded-t-2xl px-5 pb-8 pt-14 sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${f?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(gr,{className:"size-5"})}),u]})]}):null}function Uy(){const s=P(),{narrative:r,place:o}=s,u=mv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=bu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const ip=10;function rp(){const s=P(),r=s.posts??[],[o,u]=D.useState(0);if(r.length===0)return null;const f=Math.ceil(r.length/ip);return n.jsxs(rt,{id:"blog",tone:"alt",title:`${s.place.name}의 기록`,lead:"사장님이 띄엄띄엄 남기는 짧은 글입니다.",children:[n.jsx("ul",{className:"divide-line divide-y",children:r.map((d,m)=>n.jsxs("li",{hidden:Math.floor(m/ip)!==o,className:"flex flex-col gap-1.5 py-4",children:[n.jsx("time",{dateTime:d.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(d.publishedAt)}),n.jsx("p",{className:"measure whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:d.body})]},d.postId))}),f>1&&n.jsx("nav",{"aria-label":"글 페이지",className:"mt-5 flex flex-wrap justify-center gap-1.5",children:Array.from({length:f},(d,m)=>n.jsx("button",{type:"button",onClick:()=>u(m),"aria-current":m===o?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:m===o?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:m+1},m))})]})}const Hy=new Set(["가능","불가","있음","없음"]),Qo=s=>!s.note&&Hy.has(s.value.trim()),Ly=new Set(["체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function By(){var j,z;const s=P(),r=xu(s),o=Tn(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((z=o==null?void 0:o.value)==null?void 0:z.trim())||s.narrative.summary||_v(s),f=s.links.filter(N=>{var A,L,H;return N.confirmed&&[(A=N.stayGuide)==null?void 0:A.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var A;return((A=N.stayGuide)==null?void 0:A.fields)??[]}),m=[...r],x=new Set(r.map(N=>N.key));for(const N of d)x.has(N.key)||(m.push(N),x.add(N.key));const g=N=>Qo(N)?!1:Ly.has(N.label)||d.some(A=>A.key===N.key&&A.group==="rules"),p=f.map(N=>{var A;return((A=N.stayGuide)==null?void 0:A.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const v=m.filter(g),y=m.filter(N=>!g(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내 및 예약",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),v.length>0&&n.jsx(cp,{title:"예약 전 확인",rows:v,emphasis:!0}),y.length>0&&n.jsx(cp,{title:"시설 · 편의",rows:y.filter(N=>!Qo(N)),children:n.jsx(Yy,{rows:y.filter(Qo)})}),p.map(N=>n.jsx(Gy,{text:N},N.slice(0,32))),n.jsx(Xy,{})]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Vo=new Set(["가능","있음"]),qy="#16a34a",$y="#e04b25";function Yy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Vo.has(u.value))-Number(Vo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Vo.has(o.value),f=u?qy:$y;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(uu,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(gr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Gy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}function Xy(){const s=P(),r=Ke(s),o=s.place.phone;return!o&&r.length===0?null:n.jsxs("div",{className:"border-line flex flex-col gap-3 border-t pt-6 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold",children:[s.place.name," 예약은 아래로 받습니다."]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[o&&n.jsxs("a",{href:`tel:${o}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:o})]}),r.map(u=>n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)},u.url))]})]})}const Qy="/v1/site/booking-request";function Vy({stay:s,guests:r}){const o=P(),u=D.useRef(Date.now()),[f,d]=D.useState(!1),[m,x]=D.useState(null);D.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const v=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Qy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(v.get("name")??""),phone:String(v.get("phone")??""),email:String(v.get("email")??"")||null,stay:s??(String(v.get("stay")??"")||null),guests:r??(String(v.get("guests")??"")||null),message:String(v.get("message")??"")||null,consent:v.get("consent")==="on",company:String(v.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Ms,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Ms,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Ms,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Ms,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Ms,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Ms({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Zo=["일","월","화","수","목","금","토"],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Zy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=up(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Ko(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Jy(s){return hu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=Ct(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Ip(){var ce;const s=P(),r=D.useMemo(()=>Jy(s),[s]),o=D.useMemo(()=>{var K;return((K=Tn(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=D.useMemo(()=>Ky(o),[o]),[f,d]=D.useState(null),[m,x]=D.useState(0);D.useEffect(()=>d(new Date),[]);const g=D.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=D.useMemo(()=>f&&g?Zy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[v,y]=D.useState(null),[j,z]=D.useState(null),[N,A]=D.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=D.useState(2),[G,R]=D.useState(!1),[Z,X]=D.useState(!1),V=p.find(K=>K!==null&&K.iso===v)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(v&&Y&&(u.length===0||j));return D.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(X0,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"날짜 · 시간 선택"}),n.jsx("span",{className:"opacity-100",children:Z?"−":"+"})]}),f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):!Z&&!G?null:G?n.jsx(Fy,{payload:s,onReset:()=>R(!1),stay:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Ko(Y.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[V?`${g.getMonth()+1}월 ${V.day}일(${Zo[V.weekday]})`:null,j?`도착 ${j}`:null,Y?Ko(Y.name):null,`${L}명`].filter(K=>!!K).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(zn,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ra,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Zo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>y(K.iso),"aria-pressed":K.iso===v,"aria-label":`${g.getMonth()+1}월 ${K.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===v?"var(--color-brand)":"transparent",backgroundColor:K.iso===v?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===v?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===v?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(I0,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>z(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>A(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",K.maxCapacity,"명"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(xb,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(Nb,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${g.getMonth()+1}월 ${V.day}일 · ${Y?Ko(Y.name):""} · ${L}명`:"날짜를 골라 주세요"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"원"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})]})}function Fy({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(uu,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(wb,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Vy,{stay:o,guests:u})]})}function Wy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function Iy(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0],[f,d]=D.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Ou,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function Py(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:xu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Su,{id:"units",title:$e(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function e1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function t1(){const s=P(),r=ht(s),o=hl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function l1(){const s=P(),r=ht(s),o=hl(s),u=Ke(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:gt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(fu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function a1(){const s=P(),r=hl(s),o=ht(s),u=Ke(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:qs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(yu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(n1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function n1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:gt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Jo(){var p;const s=P(),r=ht(s),o=$p(s),[u,f]=D.useState(null),d=vr();if(d==="reservation")return n.jsx(Py,{});if(d==="oasi")return n.jsx(e1,{});if(d==="studio")return n.jsx(t1,{});if(d==="pastel")return n.jsx(l1,{});if(d==="editorial")return n.jsx(a1,{});const m=(p=s.theme.sections.find(v=>v.id===r.path))==null?void 0:p.variantId;if(m==="rooms.bands")return n.jsx(Wy,{});if(m==="rooms.tabs")return n.jsx(Iy,{});const x=hl(s);if(x.length===0)return null;const g=x.length===1?"grid-cols-1":x.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${x.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${g}`,children:x.map(v=>n.jsxs(Mu,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[v.images.length>0&&n.jsx(s1,{images:v.images,name:v.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:v.name}),v.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:v.chips.map(y=>n.jsx("li",{children:n.jsxs(Ou,{children:[!y.value.includes(y.label)&&n.jsx("span",{className:"text-muted",children:y.label}),n.jsx("span",{className:"font-medium",children:y.value})]})},y.label))}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro})]})]}),(v.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(v.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ra,{className:"size-4 shrink-0"})]})]},v.unitId))}),x.map(v=>{const y=o==null?void 0:o.offers.find(j=>j.unitId===v.unitId);return n.jsx(Nr,{open:u===v.unitId,onClose:()=>f(null),label:`${v.name} 상세 · 예약`,wide:!!o,children:n.jsxs("div",{className:`grid grid-cols-1 gap-6 ${o?"sm:grid-cols-2":""}`,children:[n.jsxs("div",{className:"flex flex-col gap-5",children:[n.jsx("h3",{className:"h3",children:v.name}),(y==null?void 0:y.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:y.baseRateText}),(y==null?void 0:y.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:y.capacityText}),v.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.intro}),v.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:v.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),y&&y.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:y.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))})]}),o&&n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:vu(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]}),n.jsx(Ip,{})]})]})},v.unitId)})]})}function s1({images:s,name:r}){return n.jsx(kn,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(jr,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function i1(){const s=P(),r=Ke(s),o=xv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Fp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(sp,{href:`tel:${u}`,icon:n.jsx(jt,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(sp,{href:f.url,variant:"outline",external:!0,children:vu(f)},f.url))]})})]})})}function fp(){const s=P(),r=$p(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Y0,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(q0,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(jt,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:vu(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:pl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Ip,{})]})})}function r1(){const s=P(),r=bv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Mu,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function c1(){const s=P(),{place:r}=s,o=Cn(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:jt,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:du,label:pl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function o1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Fp,{label:o.label,value:o.value},o.label))})})}function u1(){const[s,r]=D.useState([]);return D.useEffect(()=>r(ev()),[]),s}const f1=["봄","여름","가을","겨울"];function d1(){const s=P(),r=s.local.festivals,o=u1(),[u,f]=D.useState(null);if(r.length===0)return null;const d=f1.filter(y=>r.some(j=>j.season===y)),m=r.filter(y=>{var j;return!((j=y.season)!=null&&j.trim())}),x=[...o].reverse().find(y=>d.includes(y)),g="전체",p=u??x??null,v=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!v?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(y=>{const j=p===y;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(y),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:y},y)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(y=>{const j=r.filter(z=>z.season===y);return n.jsxs("div",{hidden:!v&&p!==null&&p!==y,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:y}),n.jsx(dp,{items:j,label:`${y} 축제`,remount:p})]},y)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(dp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=D.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(kn,{label:r,children:s.map(d=>n.jsx(jr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(Nr,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:u.name}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Zv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const Hs=80,mp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*Hs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*Hs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*Hs}];function dr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/Hs))}분`}function m1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function fa(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:m1(s.distanceText)}function h1(){const s=P(),{local:r}=s,o=r.restaurants.filter(y=>y.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=D.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=y=>m.filter(j=>y.test(fa(j))).length,g=mp.filter((y,j)=>j===0||x(y)>0&&x(y)y.id===f)??mp[0],v=y=>p.test(fa(y));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[ju(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",Hs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(y=>{const j=y.id===f,z=x(y);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(y.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[y.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:z})]},y.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"주변 맛집",icon:Ab,places:o,within:v}),r.attractions.length>0&&n.jsx(hp,{title:"주변 명소",icon:xr,places:r.attractions,within:v})]})]})}function p1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=D.useState(null);return n.jsxs("div",{children:[n.jsx(p1,{icon:r,children:s}),n.jsx(kn,{label:s,children:f.map(x=>n.jsx(jr,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(fa(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[dr(fa(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(Nr,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),n.jsx("h3",{className:"h3",children:d.name}),(Number.isFinite(fa(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[dr(fa(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ih(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:Ih(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,dr(fa(x))&&` · ${dr(fa(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}function x1(s){return s===0?"맑음":s>=1&&s<=2?"구름많음":s===3?"흐림":s===45||s===48?"안개":s>=51&&s<=57?"이슬비":s>=61&&s<=67?"비":s>=71&&s<=77||s===85||s===86?"눈":s>=80&&s<=82?"소나기":s>=95&&s<=99?"뇌우":"흐림"}function g1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=D.useState(s);return D.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const v=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),y=await fetch(`/v1/local/weather?${v}`,{signal:m.signal});if(!y.ok)return;const j=await y.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(z=>({temperature:Number(j.weather.temperature),condition:x1(Number(j.weather.weather_code)),note:z==null?void 0:z.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function b1(s,r,o,u){const[f,d]=D.useState({});return D.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,x=o!=null&&o.length?pp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),v=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(v)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const v1={맑음:zb,흐림:nb,비:eb,눈:lb};function y1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function j1(){var y,j,z,N,A;const s=P(),r=g1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=ov((r==null?void 0:r.condition)??""),u=uv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(y=f==null?void 0:f.noteSets)!=null&&y[d]?d:o,[x,g]=b1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((z=f==null?void 0:f.notes)==null?void 0:z[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(A=f==null?void 0:f.tempNotes)==null?void 0:A[u]);if(!r)return null;const p=y1(r.observedAt),v=v1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Mu,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(v,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function N1(){const s=P(),r=bu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=D.useState(null),m=D.useCallback(()=>d(null),[]),x=D.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return D.useEffect(()=>{if(f===null)return;const g=v=>{v.key==="Escape"&&m(),v.key==="ArrowLeft"&&x(-1),v.key==="ArrowRight"&&x(1)},p=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=p,window.removeEventListener("keydown",g)}},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsx(kn,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(jr,{basis:"basis-full",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(Fo,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(gr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(xp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function Fo({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=D.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Iv(r.name,m,x),v=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Wv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:v,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(uu,{className:"size-3.5"}):n.jsx(ib,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Jv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Xo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(V0,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(y=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:y.destination}),n.jsx("td",{className:"p-4 font-semibold",children:y.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:y.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:y.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:y.note??""})]},y.destination))})]})})})]})]})}function S1(){const s=P(),r=fv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===Bb.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Wp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function Pp(){var d,m,x,g;const s=P(),{place:r,site:o}=s,u=pu(s),f=r.roadAddress??r.address;return n.jsx("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(xr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:pl(u)}),n.jsx(cb,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((d=r.legal)==null?void 0:d.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((m=r.legal)==null?void 0:m.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((x=r.legal)==null?void 0:x.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((g=r.legal)==null?void 0:g.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Qs(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]})})}function Mn(){const s=P(),r=s.place.phone,u=Ke(s)[0],f=s.links.find(d=>d.confirmed&&/kakao/i.test(d.url));return!r&&!u&&!f?null:n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(xr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":pl(f),children:[n.jsx(du,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(jt,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:gt(u)})]})}const Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",Ls="var(--tpl-inverse, #1c1917)",ma="var(--tpl-bg, #ffffff)",dl="var(--tpl-text, #09090b)";function w1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ma},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=vr(),g=x==="reservation"?Su:x==="oasi"?wu:x==="studio"?Eu:x==="pastel"?zu:x==="editorial"?yu:null,p=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?Ls:"var(--tpl-surface, #fafafa)",color:m?ma:dl,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[g?n.jsx(g,{id:s,title:r,lead:o,aside:p}):n.jsxs("header",{className:"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:"h2",children:r}),p]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function On({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(kn,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function ml({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Xs(s,r,o){return`총 ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function ex(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,v;return`${((p=g.source)==null?void 0:p.name)??""}|${((v=g.source)==null?void 0:v.url)??""}`})).size===1&&r.items.length>1,[f,d]=D.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","가요 다방"),subtitle:r.subtitle,count:Xs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:Ls,color:ma,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":Ls},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Kv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(kb,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(ml,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(g),"--w4-vinyl":Ls,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(ml,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function E1(){const s=P(),r=Wt(s,"daily"),[o,u]=D.useState();if(D.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(v=>v.monthDay===o);if(g>=0)return g;const p=f.findIndex(v=>v.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Xs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const v=x.indexOf(g);return n.jsx(z1,{page:g,hidden:v<0,isToday:x.length===1||v===1,muted:x.length>1&&v!==1},`${g.monthDay}-${p}`)})})})}function z1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}function tx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Xs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Xs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:Ls,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(On,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(ml,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function lx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(On,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(ml,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ax(){const s=P(),r=D.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(On,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function nx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Xs(r.items.length,r.unverified,"장"),children:n.jsx(On,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(ml,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function T1(){const s=P(),r=Wt(s,"quiz"),[o,u]=D.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(On,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:dl},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(ml,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Ds=318,En=168,yp=34,A1=16,jp=4;function sx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function _1(s){if(s.length<2)return 15;for(let r=A1;r>jp;r-=1){const o=s.map(d=>sx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Ds-yp*2&&f<=En-yp*2)return r}return jp}function C1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!k1(f,x)?f:void 0}),f=x)}),u}function k1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function M1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-v.x,o[u].y-v.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function O1(s){return s.from?Fv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function D1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=C1(s,o),d=_1(f),m=M1(f.map(N=>sx(N.lat,N.lng,d))),x=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,g=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=x-Ds/2,v=g-En/2,y=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Ds)/Hl);N+=1)for(let A=Math.floor(v/Hl);A<=Math.floor((v+En)/Hl);A+=1){if(A<0||A>=y)continue;const L=(N%y+y)%y;j.push({key:`${N}-${A}`,url:`https://tile.openstreetmap.org/${d}/${L}/${A}.png`,left:N*Hl-p,top:A*Hl-v})}const z=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-v).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:En,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Ds,height:En,viewBox:`0 0 ${Ds} ${En}`,children:n.jsx("polyline",{points:z,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,A)=>{const L=m[A];return n.jsx("a",{href:O1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} → ${N.stop.name} 길찾기`:`${N.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-v,backgroundColor:Ze,color:ma,border:`1.5px solid ${ma}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function R1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function su(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function U1(){return n.jsx("div",{className:"flex w-6 shrink-0 items-center self-stretch","aria-hidden":!0,children:n.jsx("span",{className:"w-full border-t-2 border-dashed",style:{borderColor:Se}})})}function H1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d}){const m=Pb({name:s.name,startTime:o,stops:u}),[x,g]=D.useState(!1);return D.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&g(!0)},[]),n.jsxs("article",{className:"w4-paper w-[320px] shrink-0 snap-center border",style:{backgroundColor:Ft,borderColor:Se},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[m.from,"–",m.to," · ",R1(m.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",m.from]})]}),x&&n.jsx(D1,{stops:m.stops.map(p=>p.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:m.stops.map((p,v)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:p.time}),n.jsxs("div",{className:`border-l pl-3 ${x?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[p.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",p.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[p.stop.imageUrl&&x&&n.jsx("img",{src:p.stop.imageUrl,alt:`${p.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(w1,{n:v+1}),p.stop.name]}),p.stop.note&&n.jsx("span",{hidden:!x,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.stop.note})]})]}),n.jsxs("p",{hidden:!x,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[p.time,"–",p.until,p.stop.searchQuery&&` · 지도 검색 ${p.stop.searchQuery}`]})]})]},`${p.stop.name}-${v}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>g(p=>!p),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:x?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!x,className:"pt-2.5",children:n.jsx(ml,{source:s.source,verified:s.verified})})]})]})}const Wo="그 밖의 일정";function L1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>su(p).some(v=>v.stops.length>0)),f=[...new Set(u.map(p=>{var v;return((v=p.duration)==null?void 0:v.trim())||Wo}))],[d,m]=D.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const v=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":v,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:v?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(y=>{var j;return(((j=y.duration)==null?void 0:j.trim())||Wo)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(B1,{tab:p,items:u.filter(v=>{var y;return(((y=v.duration)==null?void 0:y.trim())||Wo)===p}),placeName:s.place.name},x)},p))]})}function B1({tab:s,items:r,placeName:o}){const u=D.useMemo(()=>{let p=0;return r.map(v=>{const y=p;return p+=su(v).length,{item:v,start:y}})},[r]),[f,d]=D.useState(0),m=D.useRef(null),x=D.useCallback(p=>{m.current=p},[]),g=u.reduce((p,v)=>v.start<=f?v.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:v})=>{const y=v===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(v)},"aria-current":y,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${y?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${v}`)})}),n.jsx(On,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:v})=>su(p).flatMap((y,j)=>{const z=n.jsx(H1,{item:p,badge:y.label??p.duration??`${j+1}일차`,startTime:y.startTime,stops:y.stops,first:j===0,placeName:o},`${p.name}-${v}-${j}`);return j===0?[z]:[n.jsx(U1,{},`${p.name}-${v}-c${j}`),z]}))})]})}function q1(){const s=P(),r=Wt(s,"video"),[o,u]=D.useState(),f=D.useRef(null),[d,m]=D.useState({prev:!1,next:!0}),x=D.useCallback(()=>{const v=f.current;if(!v)return;const y=v.scrollWidth-v.clientWidth;m({prev:v.scrollLeft>8,next:v.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=D.useCallback(v=>{const y=f.current;if(!y)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;y.scrollBy({left:v*y.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Ry(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((v,y)=>{const j=Xb(v.url),z=Qb(v.url),N=o===y;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:z?"9 / 16":"16 / 9",width:z?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:Zb(j),title:v.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{j&&(A.preventDefault(),u(y))},"aria-label":`${v.caption||"영상"} 재생`,className:"group block size-full",children:[j?n.jsx("img",{src:Vb(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(yb,{className:"size-6"})})})]})}),v.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.caption}),n.jsx(ml,{source:v.source,verified:v.verified})]})},`${v.url}-${y}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?zn:Ra;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const $1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},Y1=s=>[{id:"songs",label:"가요 다방",Component:ex},{id:"people",label:"인물 열전",Component:tx},{id:"chronicle",label:"시간의 골목",Component:lx},{id:"reading",label:s,Component:ax},{id:"postcard",label:"오늘의 엽서",Component:nx}];function G1(){const s=P(),r=s.place.addressLocality??"지역",o=$e(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=Y1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=D.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:dl,paddingTop:"var(--section-space)",paddingBottom:"calc(var(--section-space) * 0.55)"},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",$1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,g)=>{const p=g===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":x.id,onClick:()=>m(g),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:p?{backgroundColor:dl,color:ma,borderColor:dl}:{borderColor:Se},children:x.label},x.id)})})]})}),f.map((x,g)=>n.jsx("div",{hidden:g!==d,children:n.jsx(x.Component,{})},x.id))]})}const X1={open:"진행 중",soon:"곧 시작",closed:"종료"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function Io(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&X1[r]}function Po(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function Q1(){const s=P(),r=Wt(s,"event"),[o,u]=D.useState();D.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=D.useState(null),m=D.useCallback(()=>d(null),[]);if(D.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()},v=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",p),()=>{document.body.style.overflow=v,window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?Sp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Wp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,v)=>{const y=o?Sp(p,o):void 0,j=Io(p,y),z=Po(p),N=y==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(v),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:y==="open"&&j!=="공지"?Ze:Ft,color:y==="open"&&j!=="공지"?ma:dl,borderColor:y==="open"&&j!=="공지"?Ze:Se},children:j}),z&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:z})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${v}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:dl},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Io(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:Io(x,g)}),Po(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:Po(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(gr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const V1={songs:ex,daily:E1,people:tx,chronicle:lx,reading:ax,postcard:nx,quiz:T1,itinerary:L1,video:q1,event:Q1,story:G1},Z1="/v1/site/review",K1="/v1/site/reviews",wp=5,Ep=500;function J1(){const s=P(),[r,o]=D.useState(s.reviews??[]),u=D.useRef(Date.now()),[f,d]=D.useState(0),[m,x]=D.useState(""),[g,p]=D.useState(!1),[v,y]=D.useState(!1),[j,z]=D.useState(null),N=s.site.placeId,A=D.useCallback(async()=>{try{const G=await fetch(`${K1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);D.useEffect(()=>{u.current=Date.now(),A()},[A]),D.useEffect(()=>{v&&(u.current=Date.now())},[v]);async function L(G){if(G.preventDefault(),g)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(Z1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();z({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(x(""),d(0),y(!1),await A())}catch{z({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"점수 대신 문장으로 남겨 주세요.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"손님"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:ju(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{z(null),y(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(Nr,{open:v,onClose:()=>y(!1),label:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>x(G.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function F1(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const iu=1080,Rs=4,mt=56,ru=190,eu="#1b1a15",W1="#efe7d3",zp="#bf2f1b";function ix(s=iu){return s-mt-ru-mt-24}function rx(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const v=g+p;s.measureText(v).width>o&&g?(u.push(g),g=p):g=v}d=g}),d&&u.push(d)}),u}function I1(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const P1="/v1/image/relay?url=";async function ej(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${P1}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function tj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=tj();d.clearRect(0,0,m,m),d.fillStyle=W1,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await ej(r),v=m-mt*2,y=v/1.5,j=Math.max(v/g.width,y/g.height),z=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(mt,mt,v,y),d.clip(),d.drawImage(g,mt+(v-z)/2,mt+(y-N)/2,z,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,v-1,y-1);const A=mt+y+36,L=m-mt-ru,H=ix(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,A),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=eu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const G=rx(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=G.slice(0,Rs);if(G.length>Rs){let W=R[Rs-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Rs-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,A+50+le*60));const Z=L+ru/2;d.strokeStyle=eu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,A,88,108),d.setLineDash([]),d.fillStyle=eu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Z,A+46),d.fillText("10원",Z,A+78),d.save(),d.translate(Z,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${x}`;const X=I1(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,Y+6),p}const Ap="postcard.png";function lj(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=D.useRef(null),[u,f]=D.useState(0),[d,m]=D.useState(""),[x,g]=D.useState(""),[p,v]=D.useState(!1),[y,j]=D.useState(!0);D.useEffect(()=>{var R;v(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const z=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(D.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:z,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,z,N,r]),D.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:z,region:N}).then(j))},[]),r.length===0)return null;function A(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",rx(Z,`“${R}”`,ix()).length<=Rs):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=Ap,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],Ap,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${z} 엽서`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${z} 엽서`,url:Z}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${z}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:iu,height:iu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(kn,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`사진 ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{A(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),y?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function aj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(ij,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(rj,{}),n.jsx(Mn,{})]})}function cx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const nj=24,sj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function ij(){const s=P(),r=cx(),[o,u]=D.useState(!1);D.useEffect(()=>{const d=()=>u(window.scrollY>nj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:sj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function rj(){var p,v,y,j;const s=P(),{place:r,site:o,narrative:u}=s,f=cx(),d=r.roadAddress??r.address,m=Ke(s)[0],x=Cn(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:Bs(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:z.label})},z.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(z=>n.jsx("li",{children:n.jsx("a",{href:z.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:Bs(z)})},z.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((v=r.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Qs(o.updatedAt)})]})]})]})})}const cj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,oj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function uj({children:s}){var v,y,j,z;const r=P(),{place:o}=r,u=ht(r),f=Ke(r)[0],d=Cn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ua(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:oj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:cj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:gt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>n.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(ha,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Bs(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((v=o.legal)==null?void 0:v.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((z=o.legal)==null?void 0:z.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Qs(r.site.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function fj({children:s}){var j,z,N,A;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=_n(r),x=Ua(r),g=Ke(r)[0],p=pu(r),v=o.roadAddress??o.address,y=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(ha,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:gt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:y.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:pl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[v&&n.jsx("p",{className:"break-keep",children:v}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((z=o.legal)==null?void 0:z.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((A=o.legal)==null?void 0:A.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Qs(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Mn,{})]})}const dj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,mj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function hj({children:s}){const r=P(),o=ht(r),u=Cn(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(jt,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":pl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(ub,{className:"size-4"}):n.jsx(du,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Pp,{})}),n.jsx(Mn,{})]})}function pj({children:s}){var p,v,y,j;const r=P(),{place:o,site:u}=r,f=Gp(),d=xj(f),m=Ke(r)[0],x=pu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:gt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:qs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(z=>{const N=z.anchor===d;return n.jsxs("a",{href:`#${z.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:z.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:z.label})]},z.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:qs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:pl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((y=o.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Qs(u.updatedAt)})]})]})]})}),n.jsx(Mn,{})]})}function xj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=D.useState("");return D.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function gj(){const s=P(),r=s.place.category===da.LODGING,o={intro:Uy,info:By,rooms:Jo,menu:Jo,programs:Jo,booking:r?fp:i1,space:r1,inquiry:c1,exhibition:o1,photos:N1,festival:d1,local:h1,weather:j1,map:gp,faq:S1,...V1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Vv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!zv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(J1,{}),n.jsx(lj,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(F1,{})})]})}function cu({payload:s}){const r=Yp(s.theme.templateId),o=r==="reservation"?aj:r==="oasi"?uj:r==="studio"?fj:r==="pastel"?hj:r==="editorial"?pj:bj;return n.jsx(Mb,{payload:s,children:n.jsx(o,{children:n.jsx(gj,{})})})}function bj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(Tv,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(Pp,{}),n.jsx(Mn,{})]})}function vj(s){const{colors:r,look:o}=s.theme,u=tv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const yj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function jj(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${yj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const hr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Du(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function Nj(){return D.useEffect(()=>Du(!0),[]),null}async function Sj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(vj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=jj(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}tu.createRoot(hr).render(n.jsxs(D.StrictMode,{children:[n.jsx(cu,{payload:u}),n.jsx(Nj,{})]})),Du(!0)}const Cp=new URLSearchParams(window.location.search).get("placeId");_p?tu.hydrateRoot(hr,n.jsx(D.StrictMode,{children:n.jsx(cu,{payload:_p})})):Cp?Sj(Cp).catch(s=>{hr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Du(!1)}):S0(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-sU07QAVW.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{tu.createRoot(hr).render(n.jsx(D.StrictMode,{children:n.jsx(cu,{payload:s})}))});export{Xh as F,it as L,da as P,Bb as S,wj as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/index-zJjqnRdf.js b/solution/site/scripts/mockup/vendor/retired/index-zJjqnRdf.js new file mode 100644 index 0000000..0c69c9c --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/index-zJjqnRdf.js @@ -0,0 +1,351 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const wb="modulepreload",Eb=function(s){return"/"+s},Oh={},zb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(o.map(p=>{if(p=Eb(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=y?"stylesheet":wb,y||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),y)return new Promise((w,j)=>{N.addEventListener("load",w),N.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh;function Tb(){if(Dh)return Os;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Rh;function _b(){return Rh||(Rh=1,$o.exports=Tb()),$o.exports}var n=_b(),Go={exports:{}},ue={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh;function Ab(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,L={};function H(E,$,K){this.props=E,this.context=$,this.refs=L,this.updater=K||j}H.prototype.isReactComponent={},H.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=H.prototype;function R(E,$,K){this.props=E,this.context=$,this.refs=L,this.updater=K||j}var Q=R.prototype=new Y;Q.constructor=R,_(Q,H.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function J(){}var X={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,$,K){var F=K.ref;return{$$typeof:s,type:E,key:$,ref:F!==void 0?F:null,props:K}}function Z(E,$){return le(E.type,$,E.props)}function ne(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function ye(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return $[K]})}var Ge=/\/+/g;function Xe(E,$){return typeof E=="object"&&E!==null&&E.key!=null?ye(""+E.key):$.toString(36)}function re(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,$,K,F,ce){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),$,K,F,ce)}}if(oe)return ce=ce(E),oe=F===""?"."+Xe(E,0):F,q(ce)?(K="",oe!=null&&(K=oe.replace(Ge,"$&/")+"/"),O(ce,$,K,"",function(at){return at})):ce!=null&&(ne(ce)&&(ce=Z(ce,K+(ce.key==null||E&&E.key===ce.key?"":(""+ce.key).replace(Ge,"$&/")+"/")+oe)),$.push(ce)),1;oe=0;var Ee=F===""?".":F+":";if(q(E))for(var ze=0;ze>>1,je=O[he];if(0>>1;hef(K,ae))Ff(ce,K)?(O[he]=ce,O[F]=ae,he=F):(O[he]=K,O[$]=ae,he=$);else if(Ff(ce,ae))O[he]=ce,O[F]=ae,he=F;else break e}}return V}function f(O,V){var ae=O.sortIndex-V.sortIndex;return ae!==0?ae:O.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,N=3,w=!1,j=!1,_=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Q(O){for(var V=o(p);V!==null;){if(V.callback===null)u(p);else if(V.startTime<=O)u(p),V.sortIndex=V.expirationTime,r(g,V);else break;V=o(p)}}function q(O){if(_=!1,Q(O),!j)if(o(g)!==null)j=!0,J||(J=!0,ye());else{var V=o(p);V!==null&&re(q,V.startTime-O)}}var J=!1,X=-1,W=5,le=-1;function Z(){return L?!0:!(s.unstable_now()-leO&&Z());){var he=v.callback;if(typeof he=="function"){v.callback=null,N=v.priorityLevel;var je=he(v.expirationTime<=O);if(O=s.unstable_now(),typeof je=="function"){v.callback=je,Q(O),V=!0;break t}v===o(g)&&u(g),Q(O)}else u(g);v=o(g)}if(v!==null)V=!0;else{var E=o(p);E!==null&&re(q,E.startTime-O),V=!1}}break e}finally{v=null,N=ae,w=!1}V=void 0}}finally{V?ye():J=!1}}}var ye;if(typeof R=="function")ye=function(){R(ne)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Xe=Ge.port2;Ge.port1.onmessage=ne,ye=function(){Xe.postMessage(null)}}else ye=function(){H(ne,0)};function re(O,V){X=H(function(){O(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125he?(O.sortIndex=ae,r(p,O),o(g)===null&&O===o(p)&&(_?(Y(X),X=-1):_=!0,re(q,ae-he))):(O.sortIndex=je,r(g,O),j||w||(j=!0,J||(J=!0,ye()))),O},s.unstable_shouldYield=Z,s.unstable_wrapCallback=function(O){var V=N;return function(){var ae=N;N=V;try{return O.apply(this,arguments)}finally{N=ae}}}})(Qo)),Qo}var Bh;function kb(){return Bh||(Bh=1,Xo.exports=Cb()),Xo.exports}var Vo={exports:{}},xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qh;function Mb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Mb(),Vo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gh;function Db(){if(Gh)return Ds;Gh=1;var s=kb(),r=fu(),o=Ob();function u(e){var t="https://react.dev/errors/"+e;if(1je||(e.current=he[je],he[je]=null,je--)}function K(e,t){je++,he[je]=e.current,e.current=t}var F=E(null),ce=E(null),fe=E(null),oe=E(null);function Ee(e,t){switch(K(fe,t),K(ce,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(F),K(F,e)}function ze(){$(F),$(ce),$(fe)}function at(e){e.memoizedState!==null&&K(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(K(ce,e),K(F,l))}function Me(e){ce.current===e&&($(F),$(ce)),oe.current===e&&($(oe),As._currentValue=ae)}var te,_e;function Oe(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",_e=-1)":-1i||S[a]!==C[i]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Oe(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return Oe("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Gn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Gn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function _r(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bx=/[\n"\\]/g;function $t(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ju(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Gl=null,$r=null,ni=null;function lf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Gl?Gl.value:Gl.textContent,c=i.length;for(e=0;e=Fn),of=" ",uf=!1;function ff(e,t){switch(e){case"keyup":return Vx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Kx(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Jx(e,t){if(Wa)return e==="compositionend"||!Vr&&ff(e,t)?(e=lf(),ni=$r=Gl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ag=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(be=ee,ee=null):be=ee.sibling;var we=k(T,ee,A[me],B);if(we===null){ee===null&&(ee=be);break}e&&ee&&we.alternate===null&&t(T,ee),z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we,ee=be}if(me===A.length)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;meme?(be=ee,ee=null):be=ee.sibling;var ua=k(T,ee,we.value,B);if(ua===null){ee===null&&(ee=be);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),Se===null?se=ua:Se.sibling=ua,Se=ua,ee=be}if(we.done)return l(T,ee),ve&&Sl(T,me),se;if(ee===null){for(;!we.done;me++,we=A.next())we=G(T,we.value,B),we!==null&&(z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return ve&&Sl(T,me),se}for(ee=a(ee);!we.done;me++,we=A.next())we=D(ee,T,me,we.value,B),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?me:we.key),z=c(we,z,me),Se===null?se=we:Se.sibling=we,Se=we);return e&&ee.forEach(function(Sb){return t(T,Sb)}),ve&&Sl(T,me),se}function Ue(T,z,A,B){if(typeof A=="object"&&A!==null&&A.type===_&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var se=A.key;z!==null;){if(z.key===se){if(se=A.type,se===_){if(z.tag===7){l(T,z.sibling),B=i(z,A.props.children),B.return=T,T=B;break e}}else if(z.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===W&&_a(se)===z.type){l(T,z.sibling),B=i(z,A.props),is(B,A),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}A.type===_?(B=Sa(A.props.children,T.mode,B,A.key),B.return=T,T=B):(B=hi(A.type,A.key,A.props,null,T.mode,B),is(B,A),B.return=T,T=B)}return h(T);case j:e:{for(se=A.key;z!==null;){if(z.key===se)if(z.tag===4&&z.stateNode.containerInfo===A.containerInfo&&z.stateNode.implementation===A.implementation){l(T,z.sibling),B=i(z,A.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(A,T.mode,B),B.return=T,T=B}return h(T);case W:return A=_a(A),Ue(T,z,A,B)}if(re(A))return I(T,z,A,B);if(ye(A)){if(se=ye(A),typeof se!="function")throw Error(u(150));return A=se.call(A),ie(T,z,A,B)}if(typeof A.then=="function")return Ue(T,z,ji(A),B);if(A.$$typeof===R)return Ue(T,z,gi(T,A),B);Ni(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,A),B.return=T,T=B):(l(T,z),B=ac(A,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,A,B){try{ss=0;var se=Ue(T,z,A,B);return un=null,se}catch(ee){if(ee===on||ee===vi)throw ee;var Se=Mt(29,ee,null,T.mode);return Se.lanes=B,Se.return=T,Se}finally{}}}var Ca=Zf(!0),Kf=Zf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Te&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),kf(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,C=S.next;S.next=null,h===null?c=C:h.next=C,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=C:b.next=C,U.lastBaseUpdate=S))}if(c!==null){var G=i.baseState;h=0,U=C=S=null,b=c;do{var k=b.lane&-536870913,D=k!==b.lane;if(D?(ge&k)===k:(a&k)===k){k!==0&&k===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,ie=b;k=t;var Ue=l;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){G=I.call(Ue,G,k);break e}G=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,k=typeof I=="function"?I.call(Ue,G,k):I,k==null)break e;G=v({},G,k);break e;case 2:Zl=!0}}k=b.callback,k!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[k]:D.push(k))}else D={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(C=U=D,S=G):U=U.next=D,h|=k;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=G),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=G}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),C=O.S;if(C!==null&&C(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=dg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch(G){ds(e,t,{then:function(){},status:"rejected",reason:G},Ht())}finally{V.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function bg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=_d(e).queue;Td(e,i,t,ae,l===null?bg:function(){return Ad(e),l(a)})}function _d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ad(e){var t=_d(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(As)}function Cd(){return Je().memoizedState}function kd(){return Je().memoizedState}function vg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(_t(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function yg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Od(t,l):(l=tc(e,t,l,a),l!==null&&(_t(l,e,a),Dd(l,t,a)))}function Md(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Od(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,kt(b,h))return di(e,t,i,0),He===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return _t(l,e,a),Dd(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&_t(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Od(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lu(e,l)}}var ms={readContext:ut,use:_i,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Rd={readContext:ut,use:_i,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:bd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,Nd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(ka){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(ka){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=yg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=kc(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=kc(!1);return e=Td.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(ve){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),He===null)throw Error(u(349));(ge&127)!==0||ld(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,bd(nd.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ad.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=He.identifierPrefix;if(ve){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Al(t)}}return Be(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||eh(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),Be(t),null);case 4:return ze(),e===null&&jo(t.stateNode.containerInfo),Be(t),null;case 10:return El(t.type),Be(t),null;case 19:if($(Ke),a=t.memoizedState,a===null)return Be(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mf(l,e),l=l.sibling;return K(Ke,Ke.current&1|2),ve&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Gi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ve)return Be(t),null}else 2*pt()-a.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,K(Ke,i?l&1|2:l&1),ve&&Sl(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&$(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),Be(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Eg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Ke),null;case 4:return ze(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&$(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function sm(e,t){switch(ic(t),t.tag){case 3:El(We),ze();break;case 26:case 27:case 5:Me(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:$(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&$(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Ce(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,C=b;try{C()}catch(U){Ce(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Ce(t,t.return,U)}}function im(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Ce(e,e.return,a)}}}function rm(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Ce(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Ce(e,t,i)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Ce(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Zg(a,e.type,l,t),a[Nt]=t}catch(i){Ce(e,e.return,i)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function um(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Ce(e,e.return,c)}}var Cl=!1,et=!1,lo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,st=null;function zg(e,t){if(e=e.containerInfo,wo=sr,e=Sf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,C=0,U=0,G=e,k=null;t:for(;;){for(var D;G!==l||i!==0&&G.nodeType!==3||(b=h+i),G!==c||a!==0&&G.nodeType!==3||(S=h+a),G.nodeType===3&&(h+=G.nodeValue.length),(D=G.firstChild)!==null;)k=G,G=D;for(;;){if(G===e)break t;if(k===l&&++C===i&&(b=h),k===c&&++U===a&&(S=h),(D=G.nextSibling)!==null)break;G=k,k=G.parentNode}G=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=gh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bUe&&(h=Ue,Ue=ie,ie=h);var T=jf(b,ie),z=jf(b,Ue);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var A=G.createRange();A.setStart(T.node,T.offset),D.removeAllRanges(),ie>Ue?(D.addRange(A),D.extend(z.node,z.offset)):(A.setEnd(z.node,z.offset),D.addRange(A))}}}}for(G=[],D=b;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(Te&6)!==0)throw Error(u(331));var b=Te;if(Te|=4,Nm(c.current),vm(c,c.current,h,l),Te=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{V.p=i,O.T=a,qm(e,t)}}function Gm(e,t,l){t=Yt(l,t),t=Gc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Yn(e,2),fl(e))}function Ce(e,t,l){if(e.tag===3)Gm(e,e,l);else for(;t!==null;){if(t.tag===3){Gm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Xd(l,a,t,e),Yn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ag;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Dg.bind(null,e,t,l),t.then(e,e))}function Dg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(ge&l)===l&&(Ve===4||Ve===3&&(ge&62914560)===ge&&300>pt()-$i?(Te&2)===0&&yn(e,0):io|=l,bn===ge&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Yn(e,t),fl(e))}function Rg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Ug(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Hg(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Bg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Zm(a,c))}else c=ge,c=$a(a,a===He?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Zm(a,c));a=a.next}while(l);xo=!1}}function Lg(){Xm()}function Xm(){Ji=po=!1;var e=0;na!==0&&Jg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Qm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Qm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,G=S.initiatorType;U&&th(G)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function mh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),dh.has(i)||(dh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function nb(e){Ul.D(e),mh("dns-prefetch",e,null)}function sb(e,t){Ul.C(e,t),mh("preconnect",e,t)}function ib(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(_s(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function rb(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_s(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function cb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function ob(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(_s(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ub(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(_s(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function hh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||fb(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ph(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function fb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function _s(e){return"script[async]"+e}function xh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=ph(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(_s(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function db(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=ph(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function hb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(pb,e),ar=null,lr.call(e))}function pb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yo.exports=Db(),Yo.exports}var au=Rb();/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ub=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Xh=s=>{const r=Hb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Lb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Bb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>M.createElement("svg",{ref:g,...Bb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Mp("lucide",f),...!d&&!Lb(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ke=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(qb,{ref:d,iconNode:r,className:Mp(`lucide-${Ub(Xh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Xh(s),o};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $b=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=ke("arrow-up-right",$b);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=ke("bed-double",Gb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Qb=ke("calendar-check",Xb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Zb=ke("car",Vb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=ke("check",Kb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=ke("chevron-down",Jb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],An=ke("chevron-left",Fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=ke("chevron-right",Wb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ib=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pb=ke("clock",Ib);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],t0=ke("cloud-rain",e0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],a0=ke("cloud-snow",l0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],s0=ke("cloud",n0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r0=ke("copy",i0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],o0=ke("external-link",c0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],f0=ke("instagram",u0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=ke("mail",d0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=ke("map-pin",m0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=ke("menu",h0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=ke("message-circle",p0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x0=[["path",{d:"M5 12h14",key:"1ays0h"}]],g0=ke("minus",x0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=ke("navigation",b0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ct=ke("phone",v0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],j0=ke("play",y0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S0=ke("plus",N0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],E0=ke("rotate-ccw",w0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T0=ke("sun",z0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=ke("utensils",_0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=ke("x",C0);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],M0=ke("youtube",k0),Rp=M.createContext(null);function O0({payload:s,children:r}){return n.jsx(Rp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function D0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function R0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function H0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function L0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function B0(){const s=P(),r=(s.songs??[]).filter(q=>q.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,x]=M.useState(!1),[g,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),N=M.useRef(null),w=M.useRef(null),j=M.useRef(null),_=r.length;M.useEffect(()=>{_>1&&u(Math.floor(Math.random()*_))},[_]);const L=M.useCallback(()=>{var W;const q=document.querySelector("header"),J=q==null?void 0:q.getBoundingClientRect(),X={top:`${J?J.bottom+6:66}px`};if(window.innerWidth<=640)X.left="8px",X.right="8px";else{X.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();X.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(X)},[]);if(M.useEffect(()=>{if(!m)return;L();const q=()=>L(),J=X=>{var le,Z;const W=X.target;(le=j.current)!=null&&le.contains(W)||(Z=w.current)!=null&&Z.contains(W)||x(!1)};return window.addEventListener("resize",q),window.addEventListener("scroll",q,{passive:!0}),document.addEventListener("click",J),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q),document.removeEventListener("click",J)}},[m,L]),M.useEffect(()=>()=>{var q;return(q=N.current)==null?void 0:q.pause()},[]),r.length===0)return null;const H=r[o]??r[0],Y=(q=o)=>{const J=N.current,X=r[q];!J||!X||(J.getAttribute("src")!==X.audioUrl&&(J.src=X.audioUrl),J.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var q;(q=N.current)==null||q.pause(),d(!1)},Q=q=>{const J=(q%r.length+r.length)%r.length;u(J),p({now:0,total:0}),Y(J)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:n.jsx(D0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${H.title}`,onClick:()=>f?R():Y(),children:f?n.jsx(U0,{}):n.jsx(R0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(q=>!q),children:n.jsx(H0,{})})]}),n.jsx("audio",{ref:N,src:r[0].audioUrl,preload:"none",onTimeUpdate:q=>p({now:q.currentTarget.currentTime,total:q.currentTarget.duration}),onDurationChange:q=>p(J=>({...J,total:q.currentTarget.duration})),onEnded:()=>Q(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:j,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:n.jsx(L0,{})})]}),n.jsx("ol",{children:r.map((q,J)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":J===o,"data-playing":J===o&&f?"1":"0",onClick:()=>Q(J),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:q.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:J===o&&(f||g.now>0)?`${Qh(g.now)}${g.total?` / ${Qh(g.total)}`:""}`:""})]})},q.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` + +`).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},q0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},$0=[Vh.VERIFIED,Vh.CORRECTED];function Up(s){return $0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},_j={PUBLISHED:3};function Cn(s){return s.filter(r=>Up(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const o of Cn(s))r.set(o.key,o);return r}function fa(s,r){const o=Hp(s).get(r);return(o==null?void 0:o.value)??void 0}function At(s,r){const o=Hp(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Y0(s){return s.filter(r=>Up(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:Cn(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const X0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Q0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function V0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function Z0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function K0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function J0(s,r){var p,y;const o=v=>{const N=s.slice(0,Math.max(0,v)),w=N.split(` +`).length,j=v-N.lastIndexOf(` +`);return`${w}번째 줄 ${j}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${o(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function F0(s,r){const o=X0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:J0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of g){const N=v;N.verified!=="확인"&&(p+=1),N.source&&typeof N.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const W0=1260,I0=60,P0="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function ev(s){const r=Kh(s.startTime??"")??Kh(P0)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??I0),g=u+m;if(g+x>W0){f+=1;continue}o.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function tv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Zh[o];return r%3===0&&s.getDate()<=15?[Zh[(o+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,N)=>Math.round(v+(N-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function lv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Lp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[dl.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function av(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Bp(s){var r;for(const[o,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Wh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function nv(s){return/\/p\/search\/|[?&]query=/.test(s)}function qp(s){const r=new Map(Wh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Wh.includes(f.channel)&&!nv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??qp(s)[0]??av(s)[0]}function bu(s){return Cn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=At(r,s.key);return o?s.type!=="bool"?o:/여부$/.test(s.label)?o==="true"?"있음":o==="false"?"없음":o:o==="true"?"가능":o==="false"?"불가":o:""}const sv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function iv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Lp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=At(u.facts,"room_intro")??At(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const x=At(u.facts,m),g=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return x?{label:g,value:x}:null}).filter(m=>m!==null),rows:iv(u.facts.filter(m=>!sv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var x;return!!((x=m==null?void 0:m.alt)!=null&&x.trim())}),priceText:rv(u),prices:ov(u),href:`/${r.path}/${u.slug}`}})}function rv(s){var d,m;const r=At(s.facts,"price_range");if(r)return r;const o=Number((d=At(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=At(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const cv=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function ov(s){return At(s.facts,"price_range")?[]:At(s.facts,"weekday_price")?cv.map(([r,o])=>({label:o,value:At(s.facts,r)??"문의"})):[]}function uv(s){const r=s??"";return/눈|설/.test(r)?"눈":/비|우|소나기/.test(r)?"비":/흐림|구름|안개|박무/.test(r)?"흐림":"맑음"}function fv(s){return s>=30?"혹서":s>=25?"더움":s>=20?"선선":s>=10?"쌀쌀":"추움"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function dv(s){return Y0(s.faqs)}function mv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function hv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=F0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Lp[s.place.category]}function qe(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function kn(s,r){const o=new Map(Cn(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function pv(s,r){return kn(s,[r])[0]}const xv=["reservation_required","reservation_channel"];function gv(s){return kn(s,xv)}const bv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function vv(s){return kn(s,bv)}const yv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function jv(s){return kn(s,yv)}const Nv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return kn(s,Nv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=qp,Ev=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function zv(s){return xu(s.units).map(r=>{const o=At(r.facts,"standard_capacity"),u=At(r.facts,"max_capacity"),f=Bp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`기준 ${o}`,u&&`최대 ${u}`].filter(Boolean).join(" · ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var g;const m=At(r.facts,d),x=((g=r.facts.find(p=>p.key===d))==null?void 0:g.label)??d;return m?{label:x,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}원`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:zv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:kn(s,Ev),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function Tv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return wv(s,Sv)}function yt(s,r){const o=_n(s),u=o.endsWith("예약")?o:`${o} 예약`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"네이버 예약으로 바로 예약하기":`${Bl(s)}에서 예약`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"소개",href:"#about",show:Lt(s,"intro")},{label:"이용 정보",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"오시는 길",href:"#location",show:!0},{label:"축제",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"주변 정보",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(B0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"전화"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["잠시 걸음을 멈추고 온전한 쉼을 마주하는 시간","바쁜 일상을 내려놓고 나를 위한 여유를 담아갑니다","여행의 길목에서 만나는 조용하고 편안한 머무름","아무것도 하지 않아도 편안해지는 오늘의 휴식","낯선 곳에서 느끼는 다정한 온기와 작은 쉼표","지친 하루의 끝에 찾아오는 나만의 따뜻한 여백","천천히 흘러가는 시간 속에서 마주하는 깊은 휴식","스쳐 가는 여행 속에서 오래 기억될 아늑한 순간","복잡한 생각은 잠시 잊고 편안하게 쉬어가세요","작은 쉼이 모여 내일을 살아갈 따뜻한 힘이 됩니다"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),x=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(N=>(N+1)%x.length)},6e3);return()=>window.clearInterval(v)},[u,x.length]),!u)return s;const g=x[f%x.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:g.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return kv(s).join(" ")}function kv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}에 있는 ${r.name}입니다.`:`${r.name}입니다.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`체크인 ${d}, 체크아웃 ${m}.`);const x=fa(o,"business_hours")??fa(o,"open_hours");x&&u.push(`영업시간 ${x}.`);const g=fa(o,"pet_allowed");if(g==="false"&&u.push("반려동물 동반 불가."),g==="true"&&u.push("반려동물 동반 가능."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`주차 ${y}대 가능.`:"주차 가능.")}return r.phone&&u.push(`문의 ${r.phone}.`),u}const Mv=6e3,Ov=5;function Dv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,x=[...s.media].filter(j=>{var _;return(_=j.alt)==null?void 0:_.trim()}).sort((j,_)=>Number(_.isPrimary)-Number(j.isPrimary)).slice(0,Ov),[g,p]=M.useState(0),[y,v]=M.useState(!1),N=M.useRef(null),w=M.useCallback(j=>p(_=>(_+j+x.length)%x.length),[x.length]);return M.useEffect(()=>{if(y||x.length<2)return;const j=setInterval(()=>w(1),Mv);return()=>clearInterval(j)},[y,w,x.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:j=>{N.current=j.touches[0].clientX},onTouchEnd:j=>{const _=N.current;if(N.current=null,_===null)return;const L=j.changedTouches[0].clientX-_;Math.abs(L)>40&&w(L<0?1:-1)},children:[x.map((j,_)=>n.jsx("img",{src:j.url,alt:j.alt,fetchPriority:_===0?"high":"low",loading:_===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:_===g?1:0}},j.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),x.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Ih,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Ih,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:x.map((j,_)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(_),"aria-label":`${_+1}번째 사진`,"aria-current":_===g,className:`h-1.5 rounded-full bg-current transition-all ${_===g?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},j.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1박 최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(j=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:j.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:j.value})]},j.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Ih({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=pv(s,"extra_person_fee"),x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],g=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:x&&n.jsx("img",{src:x.url,alt:x.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[g&&n.jsx("p",{className:"label",children:g}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1박 기준"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Uv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function Gp(s){return Uv[s??""]??"default"}function Sr(){return Gp(P().theme.templateId)}const xr=5,nu=1.8,Hv=3;function Lv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` +.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } +@keyframes stay2-hero-fade { + 0% { opacity: 1; } + ${o(xr)} { opacity: 1; } + ${o(xr+nu)} { opacity: 0; } + ${o(r-nu)} { opacity: 0; } + 100% { opacity: 1; } +}`} +.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } +@keyframes stay2-hero-focus { + 0% { opacity: 0; filter: blur(0.22em); } + 40% { opacity: 1; } + 100% { opacity: 1; filter: blur(0); } +} +@media (prefers-reduced-motion: reduce) { + .stay2-hero-slide, .stay2-hero-focus { animation: none; } +} +`}function Bv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function qv(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${_n(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Lv(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} 사진`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Yv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,x=r.addressLocality??r.addressRegion,g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[x&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:x}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[g[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:g[0].url,alt:g[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),g.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:g.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"최저가"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Gs="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Xv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Qv={about:"소개",info:"이용 정보",pricing:"요금",booking:"예약 안내",space:"공간",inquiry:"문의",exhibition:"관람 안내",gallery:"사진",guide:"주변",weather:"날씨",location:"오시는 길",faq:"자주 묻는 질문",songs:"노래",daily:"일력",chronicle:"연표",reading:"읽기",people:"인물",quiz:"퀴즈",postcard:"엽서",video:"영상",itinerary:"일정"};function Ph(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of mv(s)){const m=Xv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const x=(f=d.name)==null?void 0:f.trim();u.push({no:Ph(u.length+1),label:x||Qv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ph(u.length+1),label:"오시는 길",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Vv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),x=Mn(s),g=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,N=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}개`:void 0,x].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Gs},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),N.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:N.join(" · ")}),(g||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(g)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," 문의"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Zv(){var g;const s=P(),r=Sr();if(r==="reservation")return n.jsx(qv,{});if(r==="oasi")return n.jsx($v,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Yv,{});if(r==="editorial")return n.jsx(Vv,{});const o=(g=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:g.variantId;if(o==="hero.slideshow")return n.jsx(Dv,{});if(o==="hero.split")return n.jsx(Rv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const x=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[x&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:x})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," 보기"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Xp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}년 ${r.getMonth()+1}월 ${r.getDate()}일`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Kv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function ep(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Jv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Fv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Wv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Qp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Iv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(x=>x.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function Pv(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ey={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:x,bare:g}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ty;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ey[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:x?"w-full":"shell",children:[!g&&n.jsx("div",{className:x?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${x?"shell":""}`,children:d})]})})}function ty({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ly(s){return Object.prototype.toString.call(s)==="[object Object]"}function tp(s){return ly(s)||Array.isArray(s)}function ay(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _u(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const x=s[m],g=r[m];return typeof x=="function"?`${x}`==`${g}`:!tp(x)||!tp(g)?x===g:_u(x,g)})}function lp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function ny(s,r){if(s.length!==r.length)return!1;const o=lp(s),u=lp(r);return o.every((f,d)=>{const m=u[d];return _u(f,m)})}function Au(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function ap(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return Math.abs(s)}function Cu(s){return Math.sign(s)}function Bs(s,r){return Ye(s-r)}function sy(s,r){if(s===0||r===0||Ye(s)<=Ye(r))return 0;const o=Bs(Ye(s),Ye(r));return Ye(o/s)}function iy(s){return Math.round(s*100)/100}function Ys(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function ku(s,r){return r===Zs(s)}function np(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Vp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],x=ap(d)&&ap(m);o[f]=x?Vp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function ry(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(g){return d(g)/2}function d(g){return r-g}function m(g,p){return su(s)?o[s](g):s(r,g,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,x={passive:!0}){let g;if("addEventListener"in f)f.addEventListener(d,m,x),g=()=>f.removeEventListener(d,m,x);else{const p=f;p.addListener(m),g=()=>p.removeListener(m)}return s.push(g),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function cy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,x=0,g=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&j()})}function y(){w(),f.clear()}function v(L){if(!g)return;m||(m=L,o(),o());const H=L-m;for(m=L,x+=H;x>=d;)o(),x-=d;const Y=x/d;u(Y),g&&(g=r.requestAnimationFrame(v))}function N(){g||(g=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(g),m=null,x=0,g=0}function j(){m=null,x=0}return{init:p,destroy:y,start:N,stop:w,update:o,render:u}}function oy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,x=y(),g=v();function p(j){const{height:_,width:L}=j;return u?_:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function N(j){return j*m}return{scroll:f,cross:d,startEdge:x,endEdge:g,measureSize:p,direction:N}}function Ra(s=0,r=0){const o=Ye(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function x(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:x}}function Zp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(N){return o?Ye((f+N)%f):u(N)}function x(){return d}function g(N){return d=m(N),v}function p(N){return y().set(x()+N)}function y(){return Zp(s,x(),o)}const v={get:x,set:g,add:p,clone:y};return v}function uy(s,r,o,u,f,d,m,x,g,p,y,v,N,w,j,_,L,H,Y){const{cross:R,direction:Q}=s,q=["INPUT","SELECT","TEXTAREA"],J={passive:!1},X=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),Z={mouse:300,touch:400},ne={mouse:500,touch:600},ye=j?43:25;let Ge=!1,Xe=0,re=0,O=!1,V=!1,ae=!1,he=!1;function je(te){if(!Y)return;function _e(tt){(wr(Y)||Y(te,tt))&&fe(tt)}const Oe=r;X.add(Oe,"dragstart",tt=>tt.preventDefault(),J).add(Oe,"touchmove",()=>{},J).add(Oe,"touchend",()=>{}).add(Oe,"touchstart",_e).add(Oe,"mousedown",_e).add(Oe,"touchcancel",Ee).add(Oe,"contextmenu",Ee).add(Oe,"click",ze,!0)}function E(){X.clear(),W.clear()}function $(){const te=he?o:r;W.add(te,"touchmove",oe,J).add(te,"touchend",Ee).add(te,"mousemove",oe,J).add(te,"mouseup",Ee)}function K(te){const _e=te.nodeName||"";return q.includes(_e)}function F(){return(j?ne:Z)[he?"mouse":"touch"]}function ce(te,_e){const Oe=v.add(Cu(te)*-1),tt=y.byDistance(te,!j).distance;return j||Ye(te)=2,!(_e&&te.button!==0)&&(K(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),$(),Xe=d.readPoint(te),re=d.readPoint(te,R),N.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return Ee(te);const Oe=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(Oe,Xe),It=Bs(tt,re);if(!V&&!he&&(!te.cancelable||(V=jt>It,!V)))return Ee(te);const nl=d.pointerMove(te);jt>_&&(ae=!0),p.useFriction(.3).useDuration(.75),x.start(),f.add(Q(nl)),te.preventDefault()}function Ee(te){const Oe=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=ce(Q(tt),Oe),It=sy(tt,jt),nl=ye-10*It,Bt=H+It/50;V=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),g.distance(jt,!j),he=!1,N.emit("pointerUp")}function ze(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:je,destroy:E,pointerDown:at}}function fy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,N){const j=`client${(N||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[j]}function x(v){return u=v,f=v,m(v)}function g(v){const N=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),N}function p(v){if(!u||!f)return 0;const N=m(f)-m(u),w=d(v)-d(u),j=d(v)-d(f)>170,_=N/w;return w&&!j&&Ye(_)>.1?_:0}return{pointerDown:x,pointerMove:g,pointerUp:p,readPoint:m}}function dy(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function my(s){function r(u){return s*(u/100)}return{measure:r}}function hy(s,r,o,u,f,d,m){const x=[s].concat(u);let g,p,y=[],v=!1;function N(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=N(s),y=u.map(N);function H(Y){for(const R of Y){if(v)return;const Q=R.target===s,q=u.indexOf(R.target),J=Q?p:y[q],X=N(Q?s:u[q]);if(Ye(X-J)>=.5){L.reInit(),r.emit("resize");break}}}g=new ResizeObserver(Y=>{(wr(d)||d(L,Y))&&H(Y)}),o.requestAnimationFrame(()=>{x.forEach(Y=>g.observe(Y))})}function j(){v=!0,g&&g.disconnect()}return{init:w,destroy:j}}function py(s,r,o,u,f,d){let m=0,x=0,g=f,p=d,y=s.get(),v=0;function N(){const J=u.get()-s.get(),X=!g;let W=0;return X?(m=0,o.set(u),s.set(u),W=J):(o.set(s),m+=J/g,m*=p,y+=m,s.add(m),W=y-v),x=Cu(W),v=y,q}function w(){const J=u.get()-r.get();return Ye(J)<.001}function j(){return g}function _(){return x}function L(){return m}function H(){return R(f)}function Y(){return Q(d)}function R(J){return g=J,q}function Q(J){return p=J,q}const q={direction:_,duration:j,velocity:L,seek:N,settled:w,useBaseFriction:Y,useBaseDuration:H,useFriction:Q,useDuration:R};return q}function xy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),x=Ra(.1,.99);let g=!1;function p(){return!(g||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const j=s.reachedMin(r.get())?"min":"max",_=Ye(s[j]-r.get()),L=o.get()-r.get(),H=x.constrain(_/m);o.subtract(L*H),!w&&Ye(L){const{min:L,max:H}=d,Y=d.constrain(j),R=!_,Q=ku(o,_);return R?H:Q||p(L,Y)?L:p(H,Y)?H:Y}).map(j=>parseFloat(j.toFixed(3)))}function N(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:j,max:_}=x;return m.slice(j,_)}return{snapsContained:g,scrollContainLimit:x}}function by(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function vy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:x,reachedMax:g}=Ra(d,m);function p(N){return N===1?g(o.get()):N===-1?x(o.get()):!1}function y(N){if(!p(N))return;const w=s*(N*-1);u.forEach(j=>j.add(w))}return{loop:y}}function yy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function jy(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:x}=f,g=v().map(r.measure),p=N(),y=w();function v(){return x(u).map(_=>al(_)[m]-_[0][d]).map(Ye)}function N(){return u.map(_=>o[d]-_[d]).map(_=>-Ye(_))}function w(){return x(p).map(_=>_[0]).map((_,L)=>_+g[L])}return{snaps:p,snapsAligned:y}}function Ny(s,r,o,u,f,d){const{groupSlides:m}=f,{min:x,max:g}=u,p=y();function y(){const N=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?N:N.slice(x,g).map((j,_,L)=>{const H=!_,Y=ku(L,_);if(H){const R=al(L[0])+1;return np(R)}if(Y){const R=Zs(d)-al(L)[0]+1;return np(R,al(L)[0])}return j})}return{slideRegistry:p}}function Sy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:x}=u;function g(j){return j.concat().sort((_,L)=>Ye(_)-Ye(L))[0]}function p(j){const _=s?m(j):x(j),L=r.map((Y,R)=>({diff:y(Y-_,0),index:R})).sort((Y,R)=>Ye(Y.diff)-Ye(R.diff)),{index:H}=L[0];return{index:H,distance:_}}function y(j,_){const L=[j,j+o,j-o];if(!s)return j;if(!_)return g(L);const H=L.filter(Y=>Cu(Y)===_);return H.length?g(H):al(L)-o}function v(j,_){const L=r[j]-f.get(),H=y(L,_);return{index:j,distance:H}}function N(j,_){const L=f.get()+j,{index:H,distance:Y}=p(L),R=!s&&d(L);if(!_||R)return{index:H,distance:j};const Q=r[H]-Y,q=j+y(Q,0);return{index:H,distance:q}}return{byDistance:N,byIndex:v,shortcut:y}}function wy(s,r,o,u,f,d,m){function x(v){const N=v.distance,w=v.index!==r.get();d.add(N),N&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function g(v,N){const w=f.byDistance(v,N);x(w)}function p(v,N){const w=r.clone().set(v),j=f.byIndex(w.get(),N);x(j)}return{distance:g,index:p}}function Ey(s,r,o,u,f,d,m,x){const g={passive:!0,capture:!0};let p=0;function y(w){if(!x)return;function j(_){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const Y=o.findIndex(R=>R.includes(_));Au(Y)&&(f.useDuration(0),u.index(Y,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((_,L)=>{d.add(_,"focus",H=>{(wr(x)||x(w,H))&&j(L)},g)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(g){r=m(g)}function f(g){r+=m(g)}function d(g){r-=m(g)}function m(g){return Au(g)?g:g.get()}return{get:o,set:u,add:f,subtract:d}}function Kp(s,r){const o=s.scroll==="x"?m:x,u=r.style;let f=null,d=!1;function m(N){return`translate3d(${N}px,0px,0px)`}function x(N){return`translate3d(0px,${N}px,0px)`}function g(N){if(d)return;const w=iy(s.direction(N));w!==f&&(u.transform=o(w),f=w)}function p(N){d=!N}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:g,toggleActive:p}}function zy(s,r,o,u,f,d,m,x,g){const y=Ys(f),v=Ys(f).reverse(),N=H().concat(Y());function w(X,W){return X.reduce((le,Z)=>le-f[Z],W)}function j(X,W){return X.reduce((le,Z)=>w(le,W)>0?le.concat([Z]):le,[])}function _(X){return d.map((W,le)=>({start:W-u[le]+.5+X,end:W+r-.5+X}))}function L(X,W,le){const Z=_(W);return X.map(ne=>{const ye=le?0:-o,Ge=le?o:0,Xe=le?"end":"start",re=Z[ne][Xe];return{index:ne,loopPoint:re,slideLocation:Us(-1),translate:Kp(s,g[ne]),target:()=>x.get()>re?ye:Ge}})}function H(){const X=m[0],W=j(v,X);return L(W,o,!1)}function Y(){const X=r-m[0]-1,W=j(y,X);return L(W,-o,!0)}function R(){return N.every(({index:X})=>{const W=y.filter(le=>le!==X);return w(W,r)<=.1})}function Q(){N.forEach(X=>{const{target:W,translate:le,slideLocation:Z}=X,ne=W();ne!==Z.get()&&(le.to(ne),Z.set(ne))})}function q(){N.forEach(X=>X.translate.clear())}return{canLoop:R,clear:q,loop:Q,loopPoints:N}}function Ty(s,r,o){let u,f=!1;function d(g){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){g.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(g,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,x,g=!1;function p(){x=new IntersectionObserver(j=>{g||(j.forEach(_=>{const L=r.indexOf(_.target);f[L]=_}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(j=>x.observe(j))}function y(){x&&x.disconnect(),g=!0}function v(j){return Xs(f).reduce((_,L)=>{const H=parseInt(L),{isIntersecting:Y}=f[H];return(j&&Y||!j&&!Y)&&_.push(H),_},[])}function N(j=!0){if(j&&d)return d;if(!j&&m)return m;const _=v(j);return j&&(d=_),j||(m=_),_}return{init:p,destroy:y,get:N}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:x,endEdge:g}=s,p=o[0]&&f,y=j(),v=_(),N=o.map(m),w=L();function j(){if(!p)return 0;const Y=o[0];return Ye(r[x]-Y[x])}function _(){if(!p)return 0;const Y=d.getComputedStyle(al(u));return parseFloat(Y.getPropertyValue(`margin-${g}`))}function L(){return o.map((Y,R,Q)=>{const q=!R,J=ku(Q,R);return q?N[R]+y:J?N[R]+v:Q[R+1][x]-Y[x]}).map(Ye)}return{slideSizes:N,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,x,g){const{startEdge:p,endEdge:y,direction:v}=s,N=Au(o);function w(H,Y){return Ys(H).filter(R=>R%Y===0).map(R=>H.slice(R,R+Y))}function j(H){return H.length?Ys(H).reduce((Y,R,Q)=>{const q=al(Y)||0,J=q===0,X=R===Zs(H),W=f[p]-d[q][p],le=f[p]-d[R][y],Z=!u&&J?v(m):0,ne=!u&&X?v(x):0,ye=Ye(le-ne-(W+Z));return Q&&ye>r+g&&Y.push(R),X&&Y.push(H.length),Y},[]).map((Y,R,Q)=>{const q=Math.max(Q[R-1]||0);return H.slice(q,Y)}):[]}function _(H){return N?w(H,o):j(H)}return{groupSlides:_}}function ky(s,r,o,u,f,d,m){const{align:x,axis:g,direction:p,startIndex:y,loop:v,duration:N,dragFree:w,dragThreshold:j,inViewThreshold:_,slidesToScroll:L,skipSnaps:H,containScroll:Y,watchResize:R,watchSlides:Q,watchDrag:q,watchFocus:J}=d,X=2,W=dy(),le=W.measure(r),Z=o.map(W.measure),ne=oy(g,p),ye=ne.measureSize(le),Ge=my(ye),Xe=ry(x,ye),re=!v&&!!Y,O=v||!!Y,{slideSizes:V,slideSizesWithGaps:ae,startGap:he,endGap:je}=Ay(ne,le,Z,o,O,f),E=Cy(ne,ye,L,v,le,Z,he,je,X),{snaps:$,snapsAligned:K}=jy(ne,Xe,le,Z,E),F=-al($)+al(ae),{snapsContained:ce,scrollContainLimit:fe}=gy(ye,F,K,Y,X),oe=re?ce:K,{limit:Ee}=by(F,oe,v),ze=Zp(Zs(oe),y,v),at=ze.clone(),Me=Ys(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Gn,options:{loop:sl}})=>{sl||Gn.constrain(bl.pointerDown()),$n.seek()},_e=({scrollBody:bl,translate:$n,location:Gn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Gn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},Oe=cy(u,f,()=>te(qn),bl=>_e(qn,bl)),tt=.68,jt=oe[ze.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=py(It,Bt,nl,Pt,N,tt),Hn=Sy(v,oe,F,Ee,Pt),Ln=wy(Oe,ze,at,gl,Hn,Pt,m),pt=yy(Ee),Js=Qs(),Fs=_y(r,o,m,_),{slideRegistry:Bn}=Ny(re,Y,oe,fe,E,Me),Ba=Ey(s,o,Bn,Ln,gl,Js,m,J),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:Z,animation:Oe,axis:ne,dragHandler:uy(ne,s,u,f,Pt,fy(ne,f),It,Oe,Ln,gl,Hn,ze,m,Ge,w,j,H,tt,q),eventStore:Js,percentOfView:Ge,index:ze,indexPrevious:at,limit:Ee,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:hy(r,m,f,o,ne,R,W),scrollBody:gl,scrollBounds:xy(Ee,Bt,Pt,gl,Ge),scrollLooper:vy(F,Ee,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:zy(ne,ye,F,V,ae,$,oe,Bt,o),slideFocus:Ba,slidesHandler:Ty(r,m,Q),slidesInView:Fs,slideIndexes:Me,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Kp(ne,r)};return qn}function My(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),g}function d(p,y){return s[p]=u(p).concat([y]),g}function m(p,y){return s[p]=u(p).filter(v=>v!==y),g}function x(){s={}}const g={init:o,emit:f,off:m,on:d,clear:x};return g}const Oy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Dy(s){function r(d,m){return Vp(d,m||{})}function o(d){const m=d.breakpoints||{},x=Xs(m).filter(g=>s.matchMedia(g).matches).map(g=>m[g]).reduce((g,p)=>r(g,p),{});return r(d,x)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,x)=>m.concat(x),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Ry(s){let r=[];function o(d,m){return r=m.filter(({options:x})=>s.optionsAtMedia(x).active!==!1),r.forEach(x=>x.init(d,s)),m.reduce((x,g)=>Object.assign(x,{[g.name]:g}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Dy(f),m=Ry(d),x=Qs(),g=My(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:N,off:w,emit:j}=g,_=ne;let L=!1,H,Y=p(Oy,br.globalOptions),R=p(Y),Q=[],q,J,X;function W(){const{container:Me,slides:te}=R;J=(su(Me)?s.querySelector(Me):Me)||s.children[0];const Oe=su(te)?J.querySelectorAll(te):te;X=[].slice.call(Oe||J.children)}function le(Me){const te=ky(s,J,X,u,f,Me,g);if(Me.loop&&!te.slideLooper.canLoop()){const _e=Object.assign({},Me,{loop:!1});return le(_e)}return te}function Z(Me,te){L||(Y=p(Y,Me),R=y(Y),Q=te||Q,W(),H=le(R),v([Y,...Q.map(({options:_e})=>_e)]).forEach(_e=>x.add(_e,"change",ne)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),J.offsetParent&&X.length&&H.dragHandler.init(at),q=m.init(at,Q)))}function ne(Me,te){const _e=E();ye(),Z(p({startIndex:_e},Me),te),g.emit("reInit")}function ye(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),x.clear()}function Ge(){L||(L=!0,x.clear(),ye(),g.emit("destroy"),g.clear())}function Xe(Me,te,_e){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Me,_e||0))}function re(Me){const te=H.index.add(1).get();Xe(te,Me,-1)}function O(Me){const te=H.index.add(-1).get();Xe(te,Me,1)}function V(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function he(){return H.scrollSnapList}function je(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function $(){return H.indexPrevious.get()}function K(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function ce(){return q}function fe(){return H}function oe(){return s}function Ee(){return J}function ze(){return X}const at={canScrollNext:V,canScrollPrev:ae,containerNode:Ee,internalEngine:fe,destroy:Ge,off:w,on:N,emit:j,plugins:ce,previousScrollSnap:$,reInit:_,rootNode:oe,scrollNext:re,scrollPrev:O,scrollProgress:je,scrollSnapList:he,scrollTo:Xe,selectedScrollSnap:E,slideNodes:ze,slidesInView:K,slidesNotInView:F};return Z(r,o),setTimeout(()=>g.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,x]=M.useState(),g=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{_u(o.current,s)||(o.current=s,g())},[s,g]),M.useEffect(()=>{ny(u.current,r)||(u.current=r,g())},[r,g]),M.useEffect(()=>{if(ay()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[x,f]}Mu.globalOptions=void 0;const Jp=4e3;function Fp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const x=()=>{d+=1},g=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([_])=>{m=_.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",x),f.addEventListener("pointerleave",g));let N=!1;const w=_=>{const L=_.target;!(L instanceof Element)||!L.matches(":focus-visible")||N||(N=!0,x())},j=()=>{N&&(N=!1,g())};return f.addEventListener("focusin",w),f.addEventListener("focusout",j),f.addEventListener("pointerdown",x,!0),window.addEventListener("pointerup",g,!0),window.addEventListener("pointercancel",g,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",x),f.removeEventListener("pointerleave",g)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",j),f.removeEventListener("pointerdown",x,!0),window.removeEventListener("pointerup",g,!0),window.removeEventListener("pointercancel",g,!0)}},[s,r])}function Uy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Wp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:x=Jp,onSelect:g,onReady:p,className:y}){const v=x===!1?0:x,[N,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[j,_]=M.useState([]),[L,H]=M.useState(0),[Y,R]=M.useState(!1),[Q,q]=M.useState(!1),J=M.useRef(null),X=M.useId();M.useEffect(()=>{var V;if(!w)return;const re=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),q(w.canScrollNext())},O=()=>{_(w.scrollSnapList()),re()};return O(),w.on("select",re),w.on("reInit",O),(V=J.current)==null||V.setAttribute("data-slider","on"),()=>{w.off("select",re),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const re=J.current,O=()=>re==null?void 0:re.setAttribute("data-dragging","true"),V=()=>re==null?void 0:re.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",V),()=>{w.off("pointerDown",O),w.off("pointerUp",V)}},[w]),Fp({box:J,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(re=>w==null?void 0:w.scrollTo(re),[w]),le=M.useRef(g);le.current=g;const Z=M.useRef(p);Z.current=p,M.useEffect(()=>{var O;if(!w)return;const re=()=>{var V;return(V=le.current)==null?void 0:V.call(le,w.selectedScrollSnap())};return re(),w.on("select",re),w.on("reInit",re),(O=Z.current)==null||O.call(Z,{scrollTo:V=>w.scrollTo(V)}),()=>{w.off("select",re),w.off("reInit",re)}},[w]);const ne=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),ye=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),Ge=j.length>1,Xe=f&&Ge&&j.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&Ge&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(sp,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),n.jsx(sp,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:re=>{J.current=re,N(re)},className:"slider-viewport",role:"group","aria-roledescription":"캐러셀","aria-label":s,tabIndex:0,onKeyDown:re=>{re.key==="ArrowLeft"&&(re.preventDefault(),ne()),re.key==="ArrowRight"&&(re.preventDefault(),ye())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:X,children:n.jsx(Wp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&Ge&&n.jsxs(n.Fragment,{children:[n.jsx(ip,{dir:"prev",onClick:ne,disabled:!u&&!Y,label:s}),n.jsx(ip,{dir:"next",onClick:ye,disabled:!u&&!Q,label:s})]})]}),Ge&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:j.map((re,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}번째로`,"aria-current":O===L,"aria-controls":X,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",j.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Wp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"슬라이드",children:r})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function ip({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"이전":"다음"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Ip({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function rp({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Pp({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,x)=>n.jsx("div",{style:{display:u||x0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}개 더 보기`})]})}function Ru(s){M.useEffect(()=>{if(!s)return;const r=window.scrollY,o=document.body,u=o.style.position,f=o.style.top,d=o.style.width,m=o.style.overflow;return o.style.position="fixed",o.style.top=`-${r}px`,o.style.width="100%",o.style.overflow="hidden",()=>{o.style.position=u,o.style.top=f,o.style.width=d,o.style.overflow=m;const x=document.documentElement,g=x.style.scrollBehavior;x.style.scrollBehavior="auto",window.scrollTo(0,r),x.style.scrollBehavior=g}},[s])}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){const m=M.useRef(r);return m.current=r,Ru(s),M.useEffect(()=>{if(!s)return;const x=g=>{g.key==="Escape"&&m.current()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[s]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"닫기",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"닫기",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Hy(){const s=P(),{narrative:r,place:o}=s,u=hv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(x=>!x.isPrimary),m=r.heroSubline??`${o.name} 소개`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((x,g)=>n.jsx("p",{children:x},g))})]})]})})}const Ly={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function By(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function ex(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function cp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(x=>x.postId===o)??null,d=f?ex(f.publishedAt):null,m=d?`${d.month}월 ${d.day}일 · ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"미니 블로그",lead:"사장님이 남기는 숙소 이야기입니다.",children:[n.jsx(La,{label:`${s.place.name} 미니 블로그`,align:"start",gap:.875,loop:!0,children:r.map(x=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx(qy,{post:x,onOpen:()=>u(x.postId)})},x.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`미니 블로그 · ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function qy({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=ex(s.publishedAt),d=By(o),m=Ly[d],x=`${o}월 ${u}일 · ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:x}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const $y=new Set(["가능","불가","있음","없음"]),Ko=s=>!s.note&&$y.has(s.value.trim()),Gy=new Set(["체크인 · 체크아웃","체크인 시간","체크아웃 시간","취소·환불 규정","취사 가능","반려동물 동반","흡연 가능","인원 추가 요금"]);function Yy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"체크인 · 체크아웃",value:`${r.value} · ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Xy(){var N,w;const s=P(),r=bu(s),o=Cn(s.facts).find(j=>j.key==="intro"),u=((N=o==null?void 0:o.summary)==null?void 0:N.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(j=>{var _,L,H;return j.confirmed&&[(_=j.stayGuide)==null?void 0:_.policy,(L=j.stayGuide)==null?void 0:L.service,(H=j.stayGuide)==null?void 0:H.reservation].some(Y=>Y==null?void 0:Y.trim())}),d=f.flatMap(j=>{var _;return((_=j.stayGuide)==null?void 0:_.fields)??[]}),m=Yy([...r]),x=new Set(r.map(j=>j.key));for(const j of d)x.has(j.key)||(m.push(j),x.add(j.key));const g=j=>Ko(j)?!1:Gy.has(j.label)||d.some(_=>_.key===j.key&&_.group==="rules"),p=f.map(j=>{var _;return((_=j.stayGuide)==null?void 0:_.reservation)??""}).filter(j=>j.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(g),v=m.filter(j=>!g(j)&&j.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"이용안내",lead:"방문 전 확인이 필요한 운영 규정과 시설 안내입니다.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(op,{title:"예약 전 확인",rows:y,emphasis:!0}),v.length>0&&n.jsx(op,{title:"시설 · 편의",rows:v.filter(j=>!Ko(j)),children:n.jsx(Zy,{rows:v.filter(Ko)})}),p.map(j=>n.jsx(Ky,{text:j},j.slice(0,32)))]})})}function op({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["가능","있음"]),Qy="#16a34a",Vy="#e04b25";function Zy({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Qy:Vy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Ky({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"예약 공지"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Jy="/v1/site/booking-request";function Fy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,x]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function g(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const N=await(await fetch(Jy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();x({ok:!!(N!=null&&N.success),message:String((N==null?void 0:N.message)??"")})}catch{x({ok:!1,message:"지금은 전달하지 못했습니다. 전화로 문의해 주세요."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"예약이 확정된 것은 아닙니다. 사장님이 확인 후 연락드립니다."})]}):n.jsxs("form",{onSubmit:g,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"예약 요청하기"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"빈 방을 확인해 사장님이 직접 연락드립니다."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" · ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"날짜",name:"stay",placeholder:"9월 20일 – 21일"}),n.jsx(Rs,{id:"br-guests",label:"인원",name:"guests",placeholder:"성인 2명"})]}),n.jsx(Rs,{id:"br-name",label:"성함",name:"name",placeholder:"이름을 적어 주세요",required:!0}),n.jsx(Rs,{id:"br-phone",label:"연락처",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"사장님이 전화드릴 번호입니다."}),n.jsx(Rs,{id:"br-email",label:"이메일",name:"email",type:"email",placeholder:"선택 — 답변을 메일로도 받습니다"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"요청사항"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"늦은 도착, 주차 대수 등",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"예약 상담을 위한 연락처 수집·이용에 동의합니다. 상담이 끝나면 파기합니다."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"보내는 중…":"예약 요청 보내기"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"예약이 확정되는 것은 아닙니다. 사장님 확인 후 연락드립니다."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (선택)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["일","월","화","수","목","금","토"],up=2;function fp(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Wy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=fp(o),m=Array.from({length:u.getDay()},()=>null);for(let x=1;x<=f;x+=1){const g=new Date(s,r,x),p=fp(g);m.push({iso:p,day:x,weekday:g.getDay(),isWeekend:g.getDay()===0||g.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function Py(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=At(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Bp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var le;const s=P(),r=M.useMemo(()=>Py(s),[s]),o=M.useMemo(()=>{var Z;return((Z=Cn(s.facts).find(ne=>ne.key==="check_in_time"))==null?void 0:Z.value)??void 0},[s]),u=M.useMemo(()=>Iy(o),[o]),[f,d]=M.useState(null),[m,x]=M.useState(0);M.useEffect(()=>d(new Date),[]);const g=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&g?Wy(g.getFullYear(),g.getMonth(),f):[],[f,g]),[y,v]=M.useState(null),[N,w]=M.useState(null),[j,_]=M.useState(((le=r[0])==null?void 0:le.unitId)??null),[L,H]=M.useState(2),[Y,R]=M.useState(!1),Q=p.find(Z=>Z!==null&&Z.iso===y)??null,q=r.find(Z=>Z.unitId===j)??null,J=(q==null?void 0:q.maxCapacity)??8,X=Q&&q?Q.isWeekend?q.weekendPrice??q.weekdayPrice:q.weekdayPrice:void 0,W=!!(y&&q&&(u.length===0||N));return M.useEffect(()=>{H(Z=>Math.min(Z,(q==null?void 0:q.maxCapacity)??8))},[q]),r.length===0?null:n.jsx("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:f===null||g===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"날짜 선택은 브라우저에서 열립니다. 실제 예약 가능 여부와 결제는 아래 예약 창구에서 확인해 주세요."}):Y?n.jsx(e1,{payload:s,onReset:()=>R(!1),stay:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,N?`도착 ${N}`:null,q?Wo(q.name):null].filter(Boolean).join(" · "),guests:`${L}명`,summary:[Q?`${g.getMonth()+1}월 ${Q.day}일(${Fo[Q.weekday]})`:null,N?`도착 ${N}`:null,q?Wo(q.name):null,`${L}명`].filter(Z=>!!Z).join(" · ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"날짜"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>x(Z=>Math.max(0,Z-1)),disabled:m===0,"aria-label":"이전 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(An,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[g.getFullYear(),"년 ",g.getMonth()+1,"월"]}),n.jsx("button",{type:"button",onClick:()=>x(Z=>Math.min(up,Z+1)),disabled:m>=up,"aria-label":"다음 달",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((Z,ne)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:ne===0||ne===6?.75:.45},children:Z},Z))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((Z,ne)=>Z===null?n.jsx("span",{"aria-hidden":!0},`pad-${ne}`):n.jsx("button",{type:"button",disabled:Z.past,onClick:()=>v(Z.iso),"aria-pressed":Z.iso===y,"aria-label":`${g.getMonth()+1}월 ${Z.day}일`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:Z.iso===y?"var(--color-brand)":"transparent",backgroundColor:Z.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:Z.iso===y?"#fff":void 0,opacity:Z.past?.25:1,fontWeight:Z.iso===y?700:400},children:Z.day},Z.iso))}),(Q==null?void 0:Q.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"주말 요금이 적용되는 날짜입니다."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(Pb,{className:"size-3"}),n.jsxs("span",{children:["도착 예정 시간 (체크인 ",o," 이후)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(Z=>{const ne=Z===N;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(Z),"aria-pressed":ne,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:ne?"var(--color-brand)":"var(--color-surface-alt)",color:ne?"#fff":void 0},children:Z})},Z)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"객실"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(Z=>{const ne=Z.unitId===j;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>_(Z.unitId),"aria-pressed":ne,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:ne?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:Z.name}),Z.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["최대 ",Z.maxCapacity,"명"]})]})},Z.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"인원"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(Z=>Math.max(1,Z-1)),"aria-label":"인원 줄이기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(g0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"명"]}),n.jsx("button",{type:"button",onClick:()=>H(Z=>Math.min(J,Z+1)),"aria-label":"인원 늘리기",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(S0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:Q?`${g.getMonth()+1}월 ${Q.day}일 · ${q?Wo(q.name):""} · ${L}명`:"날짜를 골라 주세요"}),X!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[X.toLocaleString("ko-KR"),"원"]})]}),X!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1박 기준 안내 요금입니다. 인원 추가·성수기 요금은 예약 창구에서 확인됩니다."})]}),n.jsx("button",{type:"button",disabled:!W,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"예약 요청 확인하기"})]})})}function e1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약 내용 확인"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화로 예약하기 ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(E0,{className:"size-4"}),n.jsx("span",{children:"다시 고르기"})]})]}),n.jsx(Fy,{stay:o,guests:u})]})}function t1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:qe(s,r.path,`${r.label} 안내`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," 구성 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:qe(s,r.path,`${r.label} 안내`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,x)=>n.jsx("button",{type:"button",role:"tab","aria-selected":x===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(x),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${x===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:x===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,x)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:x!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(g=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},g.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(g=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:g.label}),n.jsx("span",{className:"font-medium",children:g.value})]})},g.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right font-semibold",children:g.value})]},g.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]})]})]},m.unitId))]})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:qe(s,r.path,`${r.label} 안내`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(x=>n.jsxs("li",{children:[x.label," ",x.value]},x.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"자세히 보기"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right",children:x.value})]},x.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(x=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},x.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" · ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function s1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function i1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:qe(s,r.path,`${r.label} ${o.length}개 안내`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," 자세히"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function r1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Gs,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:qe(s,o.path,`${o.label} ${r.length}개 안내`)})}),r.map((f,d)=>n.jsx(c1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function c1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),x=Sr();if(x==="reservation")return n.jsx(a1,{});if(x==="oasi")return n.jsx(n1,{});if(x==="studio")return n.jsx(s1,{});if(x==="pastel")return n.jsx(i1,{});if(x==="editorial")return n.jsx(r1,{});const g=(v=s.theme.sections.find(N=>N.id===r.path))==null?void 0:v.variantId;if(g==="rooms.bands")return n.jsx(t1,{});if(g==="rooms.tabs")return n.jsx(l1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:qe(s,r.path,`${r.label} ${p.length}개 안내`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(N=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[N.images.length>0&&n.jsx(o1,{images:N.images,name:N.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:N.name}),N.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:N.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro})]})]}),(N.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(N.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"자세히 · 예약"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},N.unitId))}),p.map(N=>{const w=o==null?void 0:o.offers.find(j=>j.unitId===N.unitId);return n.jsx(ma,{open:u===N.unitId,onClose:()=>f(null),label:`${N.name} 상세 · 예약`,title:N.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),N.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:N.intro}),N.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:N.rows.map(j=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:j.label}),n.jsx("dd",{className:"text-right font-semibold",children:j.value})]},j.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(j=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:j.label}),n.jsx("dd",{className:"font-semibold",children:j.value})]},j.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"예약"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"날짜 선택하고 예약 요청하기"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",o.phone]})]}),o.links.map(j=>n.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(j)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},j.url))]})]})},N.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function o1({images:s,name:r}){return n.jsx(La,{label:`${r} 사진`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function u1(){const s=P(),r=Fe(s),o=gv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:qe(s,"booking","예약 안내"),lead:`${s.place.name} 예약은 아래 경로로 받습니다.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Ip,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(rp,{href:`tel:${u}`,icon:n.jsx(Ct,{className:"size-4"}),children:["전화 예약 ",u]}),r.map(f=>n.jsx(rp,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function dp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Qb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:qe(s,"booking","예약 안내")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"빈 방 확인과 결제는 아래 예약 창구에서 진행됩니다. 이 페이지에서는 요금과 이용 조건만 안내합니다."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"객실별 요금 · 인원"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(x=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:x.label}),n.jsx("dd",{className:"font-semibold",children:x.value})]},x.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"사진 · 상세 보기"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"예약 창구"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(Ct,{className:"size-4"}),n.jsxs("span",{children:["전화 예약 ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"문의"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"온라인 예약 채널은 등록되지 않았습니다. 예약은 전화로 문의해 주세요."})]})]}),n.jsx(Er,{})]})})}function f1(){const s=P(),r=vv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:qe(s,"space","공간 안내"),lead:"좌석과 이용 환경 안내입니다.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function d1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:Ct,label:"전화",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Op,label:"이메일",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"바로 가기",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:qe(s,"inquiry","문의 안내"),lead:`궁금한 점은 아래로 연락 주시면 ${r.name}에서 직접 안내해 드립니다.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function m1(){const s=P(),r=jv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:qe(s,"exhibition","관람 안내"),lead:"방문 전 관람 조건을 확인해 주세요.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Ip,{label:o.label,value:o.value},o.label))})})}function h1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(tv()),[]),s}const p1=["봄","여름","가을","겨울"];function x1(){const s=P(),r=s.local.festivals,o=h1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=p1.filter(v=>r.some(N=>N.season===v)),m=r.filter(v=>{var N;return!((N=v.season)!=null&&N.trim())}),x=[...o].reverse().find(v=>d.includes(v)),g="전체",p=u??x??null,y=p===g;return n.jsxs(rt,{id:"festival",title:"계절별 축제",lead:`${s.place.addressLocality??"이 지역"}의 축제와 행사를 계절로 묶었습니다.`,aside:x&&p===x&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["지금은 ",x," 축제입니다"]}):void 0,footnote:n.jsx(n.Fragment,{children:"한국관광공사 TourAPI 기준. 일정은 주최 측 사정으로 바뀔 수 있습니다."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"계절",children:[...d,g].map(v=>{const N=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const N=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(mp,{items:N,label:`${v} 축제`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"계절 없이 열리는 행사"}),n.jsx(mp,{items:m,label:"계절 없이 열리는 행사"})]})]})]})}function mp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"축제",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} 사진`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Kv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,hp=[{id:"all",label:"전체",test:()=>!0},{id:"w5",label:"걸어서 5분 이내",test:s=>s<=5*qs},{id:"w10",label:"걸어서 10분 이내",test:s=>s<=10*qs},{id:"far",label:"걸어서 10분 이상",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`도보 약 ${Math.max(1,Math.round(s/qs))}분`}function g1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:g1(s.distanceText)}function b1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],x=v=>m.filter(N=>v.test(da(N))).length,g=hp.filter((v,N)=>N===0||x(v)>0&&x(v)v.id===f)??hp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"주변 안내",lead:`${s.place.addressLocality??"주변"} 지역의 맛집 · 명소 안내입니다.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Xp(r.syncedAt)," 갱신"]}):void 0,footnote:n.jsxs(n.Fragment,{children:["도보 시간은 숙소에서 잰 직선거리를 분속 ",qs,"m 로 환산한 값입니다. 실제로 걷는 길은 이보다 깁니다."]}),children:[g.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"거리",children:g.map(v=>{const N=v.id===f,w=x(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":N,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:N?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(pp,{title:"주변 맛집",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(pp,{title:"주변 명소",icon:vr,places:r.attractions,within:y})]})]})}function v1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function pp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(v1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(x=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(x),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[x.imageUrl?n.jsx("img",{src:x.imageUrl,alt:`${x.name} 사진`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:x.name}),(Number.isFinite(da(x))||x.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(x))??x.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:x.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:x.name}),x.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:x.location}),x.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:x.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"자세히 보기"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},x.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"장소",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} 사진`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:ep(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"검색으로 열기"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(x=>!u(x)).map(x=>n.jsxs("li",{children:[n.jsx("a",{href:ep(x.searchQuery),rel:"nofollow",children:x.name}),x.distanceText&&n.jsxs("span",{children:[" ",x.distanceText,hr(da(x))&&` · ${hr(da(x))}`]}),x.description&&n.jsx("p",{children:x.description}),x.location&&n.jsx("p",{children:x.location})]},x.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 거리 안에는 없습니다."})]})}const y1={0:"맑음",1:"대체로 맑음",2:"구름 조금",3:"흐림",45:"안개",48:"착빙성 안개",51:"가벼운 이슬비",53:"보통 이슬비",55:"강한 이슬비",56:"가벼운 착빙성 이슬비",57:"강한 착빙성 이슬비",61:"약한 비",63:"보통 비",65:"강한 비",66:"약한 착빙성 비",67:"강한 착빙성 비",71:"약한 눈",73:"보통 눈",75:"강한 눈",77:"싸라기눈",80:"약한 소나기",81:"보통 소나기",82:"강한 소나기",85:"약한 소나기눈",86:"강한 소나기눈",95:"뇌우",96:"약한 우박 뇌우",99:"강한 우박 뇌우"};function j1(s){return y1[s]??"흐림"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function x(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const N=await v.json();if(!((p=N==null?void 0:N.result)!=null&&p.success)||!N.weather)return;d(w=>({temperature:Number(N.weather.temperature),condition:j1(Number(N.weather.weather_code)),note:w==null?void 0:w.note,observedAt:N.weather.observed_at,stale:!!N.stale}))}catch{}}x();const g=window.setInterval(()=>void x(),600*1e3);return()=>{m.abort(),window.clearInterval(g)}},[o,u,r]),f}function xp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,x)=>x));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?xp(s):void 0,x=o!=null&&o.length?xp(o):void 0,g=()=>d({sky:m==null?void 0:m(),temp:x==null?void 0:x()}),p=window.setTimeout(g,0),y=window.setInterval(g,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={맑음:T0,흐림:s0,비:t0,눈:a0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}월 ${Number(u)}일 ${f}:${d} 관측`}function z1(){var v,N,w,j,_;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=uv((r==null?void 0:r.condition)??""),u=fv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[x,g]=S1((N=f==null?void 0:f.noteSets)==null?void 0:N[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(j=f==null?void 0:f.tempNoteSets)==null?void 0:j[u],(_=f==null?void 0:f.tempNotes)==null?void 0:_[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"오늘의 날씨",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"°C"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] tabular-nums",children:[p,r.stale&&" · 최근 관측값"]})]}),x&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:x},x),g&&n.jsxs("p",{className:"w4-note-fade measure flex items-center gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-sm)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:g})]},g)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(g=>g.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),x=M.useCallback(g=>d(p=>p===null?null:(p+g+r.length)%r.length),[r.length]);return Ru(f!==null),M.useEffect(()=>{if(f===null)return;const g=p=>{p.key==="Escape"&&m(),p.key==="ArrowLeft"&&x(-1),p.key==="ArrowRight"&&x(1)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[f,m,x]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"공간 갤러리",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"공간 갤러리",align:"center",gap:0,arrows:"overlay",children:r.map((g,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},g.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((g,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"rounded-lg",free:!0})},g.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((g,p)=>n.jsx("li",{children:n.jsx(pr,{image:g,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},g.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"사진 크게 보기",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"닫기",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(gp,{dir:"prev",onClick:()=>x(-1)}),n.jsx(gp,{dir:"next",onClick:()=>x(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:g=>g.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function gp({dir:s,onClick:r}){const o=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"이전 사진":"다음 사진",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} 크게 보기`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function bp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:x}=r,g=m!=null&&x!=null,p=Pv(r.name,m,x),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"오시는 길",lead:"주소와 주요 거점까지의 이동 시간을 안내합니다.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[g&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} 위치 지도`,src:Iv(m,x),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:g?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"주소"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"주소 복사",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(r0,{className:"size-3.5"}),n.jsx("span",{children:u?"복사완료":"복사"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["문의:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Qp(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"네이버 길찾기"})]}),n.jsxs("a",{href:Fv(r.name,m,x),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"카카오 길찾기"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"티맵 길찾기"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Zb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"주요 거점 소요시간"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"에서 주요 거점까지의 이동 시간"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"목적지"}),n.jsx("th",{scope:"col",className:"p-4",children:"차량"}),n.jsx("th",{scope:"col",className:"p-4",children:"도보 / 대중교통"}),n.jsx("th",{scope:"col",className:"p-4",children:"거리"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"비고"})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"—"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"—"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"—"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function _1(){const s=P(),r=dv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===q0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"자주 묻는 질문",lead:o?void 0:"아래 답변은 모두 사업자가 확인한 내용입니다.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Pp,{initial:6,label:u=>`질문 ${u}개 더 보기`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function tx(){var g,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Ct,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Op,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"공식 채널",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"공식 채널"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"예약하기"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:_n(u)}),n.jsx(o0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",r.name]}),((g=r.legal)==null?void 0:g.representative)&&n.jsxs("span",{children:["대표: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"의 Web4Ai로 만든 사이트입니다."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(g=>g.confirmed&&/kakao/i.test(g.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,x]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"연락 · 예약",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"오시는 길",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"위치"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"문의"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border px-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Ct,{className:"size-4"}),n.jsx("span",{children:"전화"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>x(!0),className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg border border-transparent px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"예약하기"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-1 items-center justify-center truncate rounded-lg border border-transparent px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>x(!1),label:"예약 요청",title:"예약 요청",wide:!0,children:n.jsx(Er,{})})]})}const lx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Ne="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function A1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const x=Sr(),g=M.useContext(lx),p=x==="reservation"?wu:x==="oasi"?Eu:x==="studio"?zu:x==="pastel"?Tu:x==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," →"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:g?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:g?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["출처 ·"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["사진 · ",o]})]})}function Vs(s,r,o){return`총 ${s}${o}`}const vp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function yp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return vp[o%vp.length]}function ax(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(g=>{var p,y;return`${((p=g.source)==null?void 0:p.name)??""}|${((y=g.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],x=g=>[g.artist,g.year?String(g.year):void 0,g.lyricist||g.composer?`작사 ${g.lyricist??"미상"} / 작곡 ${g.composer??"미상"}`:void 0,g.label].filter(Boolean).join(" · ");return n.jsxs(xl,{id:"songs",name:r.title||qe(s,"songs","가요 다방"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"곡"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":yp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((g,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A면 · ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:g.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:x(g)}),g.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.story}),g.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:g.connection}),n.jsxs("a",{href:Jv(`${g.title} ${g.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(M0,{className:"size-4"}),n.jsx("span",{children:"유튜브에서 듣기"})]}),!u&&n.jsx(hl,{source:g.source,verified:g.verified})]},`disc-${g.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((g,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":yp(g),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:g.title})]},`${g.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"◎ 가사 대신 이야기 — 원문은 싣지 않습니다"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function C1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const g=new Date;u(`${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((g,p)=>g.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const g=f.findIndex(y=>y.monthDay===o);if(g>=0)return g;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=g=>f[(d+g+f.length)%f.length],x=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||qe(s,"daily","오늘의 한 장"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"장"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((g,p)=>{const y=x.indexOf(g);return n.jsx(k1,{page:g,hidden:y<0,isToday:x.length===1||y===1,muted:x.length>1&&y!==1},`${g.monthDay}-${p}`)})})})}function k1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Ne,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Ne}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Ne},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"月"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"오늘"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function nx(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||qe(s,"people","인물 열전"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"명")} · 사진이 없는 인물은 이름 활자로 대신합니다`:Vs(r.items.length,r.unverified,"명"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"인물 목록",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} 사진`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["호 ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" · ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function sx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||qe(s,"chronicle","시간의 골목"),subtitle:r.subtitle,count:`붉은 점은 도시의 성격이 바뀐 해입니다 · ${u}개 / 전체 ${o.length}개`,children:n.jsx(Un,{label:"연표",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"연도 미상"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Ne,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Ne}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} 사진`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Ne}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["지금 이 자리 · ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function ix(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"지역";return n.jsx(xl,{id:"reading",name:r.title||qe(s,"reading",`${f} 읽기`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} 읽기`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Ne},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" · ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function rx(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||qe(s,"postcard","오늘의 엽서"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"장"),children:n.jsx(Un,{label:"엽서 목록",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"엽서"} 사진`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Ne}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["사진 · ",o.imageCredit||"출처 표기 없음"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Ne},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["“",o.line,"”"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Ne},children:["郵票",n.jsx("br",{}),"10원"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"소인"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const x=new Set(m);return x.has(d)?x.delete(d):x.add(d),x});return n.jsx(xl,{id:"quiz",name:r.title||qe(s,"quiz","뒤집어 보는 질문"),subtitle:r.subtitle,count:`정답은 두지 않습니다 — 힌트와 출처까지만 · 총 ${r.items.length}문항`,children:n.jsx(Un,{label:"질문 목록",children:r.items.map((d,m)=>{const x=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":x,"aria-label":`${m+1}번 문제 ${x?"앞면 보기":"힌트 보기"}`,className:`w4-flip ${x?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["문제 ",m+1,d.level?` · ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"눌러서 힌트 보기 →"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"힌트"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"힌트가 아직 없습니다."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Ne},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,jp=34,O1=16,Np=4;function cx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>Np;r-=1){const o=s.map(d=>cx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-jp*2&&f<=Tn-jp*2)return r}return Np}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const x=o(d);x&&(u.push({label:String(m+1),...x,stop:d,from:f&&!U1(f,x)?f:void 0}),f=x)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,x=o[u].y-d.y,g=Math.hypot(m,x)||1,p=(27-g)/g;o[u].x+=(m||1)*p,o[u].y+=x*p}return o}function L1(s){return s.from?Wv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Qp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(j=>j.latitude!=null&&j.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(j=>cx(j.lat,j.lng,d))),x=(Math.min(...m.map(j=>j.x))+Math.max(...m.map(j=>j.x)))/2,g=(Math.min(...m.map(j=>j.y))+Math.max(...m.map(j=>j.y)))/2,p=x-Hs/2,y=g-Tn/2,v=2**d,N=[];for(let j=Math.floor(p/Hl);j<=Math.floor((p+Hs)/Hl);j+=1)for(let _=Math.floor(y/Hl);_<=Math.floor((y+Tn)/Hl);_+=1){if(_<0||_>=v)continue;const L=(j%v+v)%v;N.push({key:`${j}-${_}`,url:`https://tile.openstreetmap.org/${d}/${L}/${_}.png`,left:j*Hl-p,top:_*Hl-y})}const w=m.map(j=>`${(j.x-p).toFixed(1)},${(j.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Ne,backgroundColor:"#e8e5df"},children:[N.map(j=>n.jsx("img",{src:j.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:j.left,top:j.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},j.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((j,_)=>{const L=m[_];return n.jsx("a",{href:L1(j),target:"_blank",rel:"noopener noreferrer",title:j.from?`${j.from.name} → ${j.stop.name} 길찾기`:`${j.stop.name} — 네이버 지도`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:j.label},j.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"© OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}시간`:"",o>0?`${o}분`:""].filter(Boolean).join(" ")||"0분"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:x}){const g=ev({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${x?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Ne,...x?{borderRight:`2px dashed ${Ne}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Ne},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Ne},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[g.from,"–",g.to," · ",q1(g.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"에서 출발 · ",g.from]})]}),p&&n.jsx(B1,{stops:g.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:g.stops.map((v,N)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Ne},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["↓ ",v.move,"분 이동"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} 사진`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Ne}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(A1,{n:N+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"–",v.until,v.stop.searchQuery&&` · 지도 검색 ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${N}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Ne},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:p?"접기":"지도 · 설명 보기"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="그 밖의 일정";function G1(){var g;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((g=s.local)==null?void 0:g.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),x=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||qe(s,"itinerary","추천 일정"),subtitle:r.subtitle,count:"시각은 출발 시각과 머무는 시간으로 계산한 것입니다",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"묵는 기간",children:f.map(p=>{const y=x===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var N;return(((N=v.duration)==null?void 0:N.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==x,children:n.jsx(Y1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},x)},p))]})}function Y1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),x=M.useCallback(p=>{m.current=p},[]),g=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===g;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var N;return(N=m.current)==null?void 0:N.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} 일정`,onSelect:d,onReady:x,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((N,w)=>n.jsx($1,{item:p,badge:N.label??p.duration??`${w+1}일차`,startTime:N.startTime,stops:N.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const g=M.useCallback(y=>{const v=f.current;if(!v)return;const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:N?"auto":"smooth"})},[]);if(Fp({box:f,interval:Jp,advance:()=>Uy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||qe(s,"video","영상으로 보기"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:x,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const N=Q0(y.url),w=V0(y.url),j=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Ne,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:j&&N?n.jsx("iframe",{src:K0(N),title:y.caption||"영상",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:_=>{N&&(_.preventDefault(),u(v))},"aria-label":`${y.caption||"영상"} 재생`,className:"group block size-full",children:[N?n.jsx("img",{src:Z0(N),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"유튜브 영상이 아닙니다 — 눌러서 원본으로 갑니다"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(j0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Sp,{dir:"prev",onClick:()=>g(-1),disabled:!d.prev}),n.jsx(Sp,{dir:"next",onClick:()=>g(1),disabled:!d.next})]})]})})}function Sp({dir:s,onClick:r,disabled:o}){const u=s==="prev"?An:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"이전 영상":"다음 영상",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"한",2:"두",3:"세",4:"네",5:"다섯",6:"여섯",7:"일곱"},V1=s=>[{id:"songs",label:"가요 다방",Component:ax,dark:!1},{id:"people",label:"인물 열전",Component:nx,dark:!0},{id:"chronicle",label:"시간의 골목",Component:sx,dark:!1},{id:"reading",label:s,Component:ix,dark:!1},{id:"postcard",label:"오늘의 엽서",Component:rx,dark:!1}];function Z1(){var x;const s=P(),r=s.place.addressLocality??"지역",o=qe(s,"story",`${r} 이야기`),u=Wt(s,"reading").title||`${r} 읽기`,f=V1(u).filter(g=>Wt(s,g.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(x=f[d])!=null&&x.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["이 도시를 ",Q1[f.length]??`${f.length}`," 갈래로 봅니다. 하나씩 골라 보세요."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((g,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":g.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Ne},children:g.label},g.id)})})]})}),n.jsx(lx.Provider,{value:!0,children:f.map((g,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(g.Component,{})},g.id))})]})}const K1={open:"진행 중",soon:"곧 시작",closed:"종료"};function wp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="공지"&&!s.startDate&&!s.endDate?"공지":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}월 ${Number(d[3])}일`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} – ${u}`;if(o)return`${o}부터`;if(u)return`${u}까지`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(Ru(f!==null),M.useEffect(()=>{if(f===null)return;const p=y=>{y.key==="Escape"&&m()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[f,m]),r.items.length===0)return null;const x=f===null?void 0:r.items[f],g=x&&o?wp(x,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||qe(s,"event",`${s.place.name} 소식`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"더 보기"}:void 0,count:"자세한 내용과 최신 소식은 원문에서 확인해 주세요.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Pp,{initial:2,label:p=>`소식 ${p}개 더 보기`,children:r.items.map((p,y)=>{const v=o?wp(p,o):void 0,N=eu(p,v),w=tu(p),j=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Ne,opacity:j?.6:1,boxShadow:j?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} 자세히 보기`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Ne}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} 안내 이미지`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:j?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&N!=="공지"?Ze:Ft,color:v==="open"&&N!=="공지"?ha:ml,borderColor:v==="open"&&N!=="공지"?Ze:Ne},children:N}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"자세히 보기 →"})]})]},`${p.title}-${y}`)})})}),x&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":x.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Ne,color:ml},children:[x.imageUrl&&n.jsx("img",{src:x.imageUrl,alt:`${x.title} 안내 이미지`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(x,g)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Ne},children:eu(x,g)}),tu(x)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(x)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:x.title}),x.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.summary}),x.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Ne},children:x.howTo}),x.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[x.postUrl?n.jsx("a",{href:x.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"원문 보기 →"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Ne},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"닫기"})]})]})]})]})})]})}const F1={songs:ax,daily:C1,people:nx,chronicle:sx,reading:ix,postcard:rx,quiz:M1,itinerary:G1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",Ep=5,zp=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,x]=M.useState(""),[g,p]=M.useState(!1),[y,v]=M.useState(!1),[N,w]=M.useState(null),j=s.site.placeId,_=M.useCallback(async()=>{try{const Y=await fetch(`${I1}?place_id=${encodeURIComponent(j)}`);if(!Y.ok)return;const R=await Y.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[j]);M.useEffect(()=>{u.current=Date.now(),_()},[_]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(Y){if(Y.preventDefault(),g)return;const R=new FormData(Y.currentTarget);p(!0);try{const q=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(q!=null&&q.success),message:String((q==null?void 0:q.message)??"")}),q!=null&&q.success&&(x(""),d(0),v(!1),await _())}catch{w({ok:!1,message:"지금은 남기지 못했습니다. 잠시 뒤 다시 시도해 주세요."})}finally{p(!1)}}const H=Math.ceil(r.length/Ep);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"다녀오신 이야기",lead:"다녀가신 분들이 남긴 이야기입니다.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((Y,R)=>n.jsxs("li",{hidden:Math.floor(R/Ep)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:Y.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:Y.nickname||"손님"}),n.jsx("time",{dateTime:Y.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Xp(Y.publishedAt)})]})]},Y.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"후기 페이지",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(Y,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(N==null?void 0:N.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:N.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"위 목록에 바로 올라갔습니다."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"후기 남기기"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"후기 남기기",title:"후기 남기기",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"후기"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:zp,value:m,onChange:Y=>x(Y.target.value),placeholder:"어떤 점이 좋았는지, 다음 손님이 알면 좋을 것을 적어 주세요",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",zp,"자"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["표시 이름 ",n.jsx("span",{className:"text-muted font-normal",children:"(선택)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"비우면 '손님'으로 올라갑니다",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"남긴 글이 이 사이트에 공개되는 것에 동의합니다."})]}),N&&!N.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:N.message}),n.jsx("button",{type:"submit",disabled:g,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:g?"보내는 중…":"후기 보내기"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"함께 발행한 소식"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"사장님이 승인해 홈페이지와 Threads에 함께 전한 소식입니다."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (한국시간)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS에 올린 글 보기"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",Tp="#bf2f1b";function ox(s=cu){return s-mt-ou-mt-24}function ux(s,r,o){const u=[];return r.split(` +`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=o){d=x;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>o&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>o&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function _p(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,N=Math.max(y/g.width,v/g.height),w=g.width*N,j=g.height*N;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(g,mt+(y-w)/2,mt+(v-j)/2,w,j),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const _=mt+v+36,L=m-mt-ou,H=ox(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,_),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=ux(d,`“${o.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,H),R=Y.slice(0,Ls);if(Y.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}…`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}…`}R.forEach((W,le)=>d.fillText(W,mt,_+50+le*60));const Q=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Q-44,_,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Q,_+46),d.fillText("10원",Q,_+78),d.save(),d.translate(Q,_+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${x}`;const q=lj(d,u,100).slice(0,2),J=8-(q.length-1)*26/2;q.forEach((W,le)=>d.fillText(W,0,J+le*26)),d.restore();const X=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,X-20),d.lineTo(m-mt,X-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,mt,X+6),p}const Ap="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[x,g]=M.useState(""),[p,y]=M.useState(!1),[v,N]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,j=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Q=r[u];if(!R||!(Q!=null&&Q.url))return;const q=window.setTimeout(()=>{_p(R,{photoUrl:Q.url,text:d,placeName:w,region:j}).then(N)},80);return()=>window.clearTimeout(q)},[u,d,w,j,r]),M.useEffect(()=>{var q;const R=o.current,Q=r[u];!R||!(Q!=null&&Q.url)||!((q=document.fonts)!=null&&q.ready)||document.fonts.ready.then(()=>_p(R,{photoUrl:Q.url,text:d,placeName:w,region:j}).then(N))},[]),r.length===0)return null;function _(R){var q;const Q=(q=o.current)==null?void 0:q.getContext("2d");return Q?(Q.font="600 46px serif",ux(Q,`“${R}”`,ox()).length<=Ls):!0}function L(){return new Promise(R=>{const Q=o.current;if(!Q)return R(null);Q.toBlob(q=>R(q),"image/png",.95)})}function H(R){const Q=URL.createObjectURL(R),q=document.createElement("a");q.href=Q,q.download=Ap,q.click(),URL.revokeObjectURL(Q)}async function Y(){var J,X;const R=await L();if(!R)return;const Q=((J=document.querySelector('meta[property="og:url"]'))==null?void 0:J.content)??`${location.origin}${location.pathname}`,q=new File([R],Ap,{type:"image/png"});if((X=navigator.canShare)!=null&&X.call(navigator,{files:[q]})){await navigator.share({files:[q],title:`${w} 엽서`,text:Q}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Q}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}H(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return n.jsx(rt,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고, 그대로 공유하거나 저장할 수 있습니다.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"내가 만든 엽서 미리보기",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`엽서 사진 고르기(${r.length}장)`,children:n.jsx(La,{label:"엽서 사진",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Q)=>n.jsx("button",{type:"button",onClick:()=>f(Q),role:"radio","aria-checked":Q===u,"aria-label":`사진 ${Q+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Q===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"엽서에 적을 말"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"여기에 적으면 엽서에 바로 나타납니다",onChange:R=>{_(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["네 줄까지 · ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void Y(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"카카오톡 등으로 공유":"공유하기"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"이미지로 저장"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"이 사진은 다른 사이트에 올라와 있어 저장·공유가 막혀 있습니다. 화면으로만 보여 드립니다."}),x&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:x})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function fx(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"소개"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"이용 정보"},{id:"booking",href:"#booking",fallback:"예약 안내"},{id:"photos",href:"#gallery",fallback:"사진"},{id:"map",href:"#location",fallback:"오시는 길"},{id:"local",href:"#guide",fallback:"주변 정보"},{id:"faq",href:"#faq",fallback:"자주 묻는 질문"}].filter(o=>Lt(s,o.id)).map(o=>({label:qe(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=fx(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:"메뉴"}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,N;const s=P(),{place:r,site:o,narrative:u}=s,f=fx(),d=r.roadAddress??r.address,m=Fe(s)[0],x=On(s),g=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),g&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:g})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"주소"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"전화"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"이메일"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"예약"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:_n(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"사이트 메뉴",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),x.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:x.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:_n(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["상호 ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표 ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호 ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고 ",r.legal.mailOrderNumber]}),((N=r.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"인허가번호"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",r.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` +.oasi-page main > section:not([data-oasi]) { + background-color: transparent !important; + background-image: none !important; + border-color: transparent !important; + color: var(--tpl-text) !important; + padding-block: var(--oasi-gap) 0 !important; +} +.oasi-page main > section:not([data-oasi]) .shell { + max-width: none; + padding-inline: 0; +} +.oasi-page main > section#about > .shell > .grid { + display: block; +} +.oasi-page main > section#about > .shell > .grid > * + * { + margin-top: 2.5rem; +} +.oasi-page main > section#summary dl { + grid-template-columns: minmax(0, 1fr); +} + +/* + * 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요") + * + * ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의 + * ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서 + * **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.** + * ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로 + * 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지 + * 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다. + * ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면 + * 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다. + * ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다") + * 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면 + * 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다. + */ +.oasi-page section#event li, +.oasi-page section#itinerary article { + background-image: none !important; + background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; + border-width: 1px !important; + box-shadow: none !important; +} + +.oasi-page .panel, +.oasi-page .panel-sunken { + background-color: transparent; + border-width: 0; + border-radius: 0; + box-shadow: none; +} + +.oasi-page main > section#faq > .shell > div:last-of-type { + row-gap: 0; + column-gap: 2.5rem; +} +.oasi-page main > section#faq details { + margin-block: 0; + border-top: 1px solid var(--site-line); +} +.oasi-page main > section#faq summary { + padding-inline: 0; +} +.oasi-page main > section#faq summary > span:first-child { + width: 1.125rem; +} +.oasi-page main > section#faq summary + div { + border-top-width: 0; + padding-inline: 1.875rem 0; + padding-top: 0.5rem; +} + +.oasi-page main > section#info dl.panel > div { + padding-inline: 0; +} +.oasi-page main > section#info dl > div.panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} + +.oasi-page main > section#location .panel { + border-top: 1px solid var(--site-line); + padding-inline: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { + padding-left: 0; +} +.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { + padding-right: 0; +} + +.oasi-page main > section#weather .panel { + padding-inline: 0; +} + +.oasi-page main > section#guide .panel > span:last-child { + padding-inline: 0; +} +@media (min-width: 40rem) { + .oasi-page main > section#festival .panel > span:last-child { + padding-inline: 0; + } +} +`,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,N,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(j=>j.show),x=[...Ha(r).map(j=>`${j.label} ${j.value}`),...r.theme.sections.filter(j=>{var _;return j.enabled&&((_=j.name)==null?void 0:_.trim())}).map(j=>j.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((j,_)=>n.jsx("li",{children:n.jsx("a",{href:j.href,"aria-current":_===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${_===0?"":"text-muted"}`,children:j.label})},j.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((j,_)=>n.jsxs("li",{className:"flex items-center gap-4",children:[_>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:j})]},j))}),g&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:g})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(j=>n.jsx("li",{children:n.jsx("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:_n(j)})},j.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["대표 ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"인허가번호"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var N,w,j,_;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),x=Ha(r),g=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||x.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"최저가"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),x.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),g&&n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(g)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["전화 ",o.phone]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"공식 채널",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["상호: ",o.name]}),((N=o.legal)==null?void 0:N.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((_=o.legal)==null?void 0:_.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` +.pastel-page > main > section:not([data-pastel]) { + border-color: transparent; + background-image: none; + color: var(--pastel-ink) !important; +} +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } +.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } +`,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"소개",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Lt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Ct,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(f0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(Dp,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(tx,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,N;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],x=gu(r),g=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Gs},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const j=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":j?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:j?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:j?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Gs},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[g&&n.jsx("p",{children:g}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),x&&n.jsx("nav",{"aria-label":"공식 채널",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(x)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["상호: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["대표: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["사업자등록번호: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["통신판매업신고: ",o.legal.mailOrderNumber]}),((N=o.legal)==null?void 0:N.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"인허가번호",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",o.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const x=m.find(g=>g.isIntersecting);x&&u(x.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Hy,info:Xy,rooms:Io,menu:Io,programs:Io,booking:r?dp:u1,space:f1,inquiry:d1,exhibition:m1,photos:T1,festival:x1,local:b1,weather:z1,map:bp,faq:_1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Zv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(cp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(bp,{}),r&&!Tv(s,"booking")&&n.jsx(dp,{}),!Lt(s,"intro")&&n.jsx(cp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=Gp(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(O0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(tx,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=lv(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=x=>x&&!/[<>{};]/.test(x)?x:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[x,g]of m)g&&(f[x]=g)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),Cp=window.__SITE_PAYLOAD__;function Uu(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Uu(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Uu(!0)}const kp=new URLSearchParams(window.location.search).get("placeId");Cp?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:Cp})})):kp?Tj(kp).catch(s=>{gr.textContent=`미리보기를 불러오지 못했습니다 — ${s instanceof Error?s.message:String(s)}`,Uu(!1)}):zb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CPBD_IcG.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Vh as F,it as L,dl as P,q0 as S,_j as a}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8IEW21oh.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8IEW21oh.js new file mode 100644 index 0000000..feb7836 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8IEW21oh.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-7lQty0Rm.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8VRz5Okc.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8VRz5Okc.js new file mode 100644 index 0000000..fbe6a3a --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-8VRz5Okc.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-B8oylr_t.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-B6bjlS-i.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-B6bjlS-i.js new file mode 100644 index 0000000..30d8f89 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-B6bjlS-i.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-CVSUiGp0.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BAFLpg_H.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BAFLpg_H.js new file mode 100644 index 0000000..4977551 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BAFLpg_H.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-DZHen0yX.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BkWwv6kr.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BkWwv6kr.js new file mode 100644 index 0000000..e85b058 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-BkWwv6kr.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-D4tfakmK.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CD7VPpnE.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CD7VPpnE.js new file mode 100644 index 0000000..cf5dcd7 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CD7VPpnE.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-DmQEY1EO.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CH2osEsx.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CH2osEsx.js new file mode 100644 index 0000000..d3401d8 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CH2osEsx.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-CXe-X1sJ.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CPBD_IcG.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CPBD_IcG.js new file mode 100644 index 0000000..dfa932f --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CPBD_IcG.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-zJjqnRdf.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CxhTmtlu.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CxhTmtlu.js new file mode 100644 index 0000000..89e517f --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-CxhTmtlu.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-Sz2NatL3.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-DTV-RASr.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-DTV-RASr.js new file mode 100644 index 0000000..caf22e8 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-DTV-RASr.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-DygF55RM.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-EYbVBjx3.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-EYbVBjx3.js new file mode 100644 index 0000000..ab4bf14 --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-EYbVBjx3.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-BbgO8jrB.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD}; diff --git a/solution/site/scripts/mockup/vendor/retired/moonlight-stay-LY72UVMv.js b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-LY72UVMv.js new file mode 100644 index 0000000..d41c13a --- /dev/null +++ b/solution/site/scripts/mockup/vendor/retired/moonlight-stay-LY72UVMv.js @@ -0,0 +1 @@ +import{L as s,S as t,F as r,P as l,a as m}from"./index-NVn2QSyB.js";const c="2026-08-27T02:00:00+09:00";function a(i,o,n,u={}){return{key:i,label:o,value:n,type:"text",scope:"place",status:r.VERIFIED,sourceType:t.OWNER,critical:!1,required:!1,verifiedAt:c,...u}}const p=[a("check_in_time","체크인 시간","16:00",{type:"time",critical:!0,required:!0}),a("check_out_time","체크아웃 시간","11:00",{type:"time",critical:!0,required:!0}),a("cancel_policy","취소·환불 규정","이용일 10일 전 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30%, 2일 전부터는 환불 불가",{critical:!0,required:!0,status:r.CORRECTED}),a("cooking_allowed","취사 가능","true",{type:"bool",critical:!0,required:!0}),a("pet_allowed","반려동물 동반","false",{type:"bool",critical:!0,required:!0}),a("smoking","흡연 가능","false",{type:"bool",critical:!0}),a("parking","주차 가능","true",{type:"bool"}),a("parking_capacity","주차 대수","4",{type:"number",unit:"대"}),a("wifi","와이파이","true",{type:"bool"}),a("bbq_available","바비큐 이용","false",{type:"bool"}),a("breakfast","조식 제공","false",{type:"bool"}),a("baby_amenities","유아용품 비치","true",{type:"bool"}),a("reception_hours","문의 가능 시간","09:00 ~ 21:00"),a("extra_person_fee","인원 추가 요금","30000",{type:"number",unit:"원",critical:!0}),a("pickup_service","픽업 서비스","true",{type:"bool",status:r.UNVERIFIED,sourceType:t.CRAWL,sourceUrl:"https://example.com/listing/1234",verifiedAt:null})];function e(i,o,n,u,d={}){return a(i,o,n,{...d,scope:"unit",unitId:u})}const y={schemaVersion:1,site:{siteId:"demo-site-0001",placeId:"demo-place-0001",status:m.PUBLISHED,origin:"https://moonlight-stay-jeju.web4ai.o2osolution.ai",basePath:"",slug:"moonlight-stay-jeju",publishedAt:"2026-08-20T10:00:00+09:00",updatedAt:c,version:3,publish:!0},place:{name:"달빛스테이 제주",englishName:"Moonlight Stay Jeju",category:l.LODGING,roadAddress:"제주특별자치도 제주시 애월읍 애월해안로 382-12",address:"제주특별자치도 제주시 애월읍 고내리 1108-4",addressRegion:"제주특별자치도",addressLocality:"제주시 애월읍",phone:"0507-1345-8821",email:"contact@moonlightstay.kr",latitude:33.4658,longitude:126.3195,regionCode:"50110253",kakaoPlaceId:"1234567890",legal:{representative:"김달빛",businessRegistrationNumber:"618-24-99812",mailOrderNumber:"제2025-제주애월-0142호",licenseNumber:"제2024-0038호",licenseLabel:"농어촌민박 신고번호"}},facts:p,units:[{unitId:"unit-a",name:"Moonlight A동",slug:"moonlight-a",sortOrder:1,mediaIds:["m-a1","m-a2","m-a3"],facts:[e("room_type","객실 타입","독채형 빌라 (복층)","unit-a",{required:!0}),e("standard_capacity","기준 인원","2","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-a",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","퀸 사이즈 1개 + 토퍼 1세트","unit-a"),e("room_size","객실 면적","76","unit-a",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-a",{type:"bool",critical:!0}),e("view","전망","돌담 정원 뷰","unit-a"),e("weekday_price","주중 요금","280000","unit-a",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","350000","unit-a",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","높은 층고와 통창 너머로 애월의 돌담 풍경이 펼쳐지는 독채입니다. 뒷마당의 현무암 자쿠지에서 사계절 온수 스파를 이용할 수 있습니다.","unit-a")]},{unitId:"unit-b",name:"Starlight B동",slug:"starlight-b",sortOrder:2,mediaIds:["m-b1","m-b2","m-b3"],facts:[e("room_type","객실 타입","독채형 빌라 (2층 테라스)","unit-b",{required:!0}),e("standard_capacity","기준 인원","2","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("max_capacity","최대 인원","4","unit-b",{type:"number",unit:"명",critical:!0,required:!0}),e("bed_type","침대 구성","킹 사이즈 1개","unit-b"),e("room_size","객실 면적","82","unit-b",{type:"number",unit:"㎡"}),e("has_kitchen","주방 여부","true","unit-b",{type:"bool",critical:!0}),e("view","전망","2층 루프탑 오션뷰","unit-b"),e("weekday_price","주중 요금","300000","unit-b",{type:"number",unit:"원",critical:!0}),e("weekend_price","주말 요금","370000","unit-b",{type:"number",unit:"원",critical:!0}),e("room_intro","객실 소개","2층 테라스에서 애월 바다의 수평선과 일몰을 볼 수 있습니다. 아일랜드형 오픈 키친을 갖췄습니다.","unit-b")]}],media:[{mediaId:"m-hero",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=85",alt:"달빛스테이 제주 독채 외관과 현무암 돌담 정원",category:"외관",caption:"제주 돌담에 둘러싸인 독채 전경",width:2e3,height:1333,isPrimary:!0,sourceType:t.OWNER},{mediaId:"m-about",url:"https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80",alt:"목재 다도 테이블과 다기 세트가 놓인 실내 공간",category:"다도 공간",caption:"제주 유기농 녹차와 함께하는 티타임",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-a1",url:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 거실과 통창 너머 돌담 풍경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a2",url:"https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 퀸사이즈 침실과 간접 조명",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-a3",url:"https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1200&q=80",alt:"Moonlight A동 야외 현무암 노천 온수 자쿠지",category:"부대시설",caption:"사계절 온수 노천 자쿠지",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-a"},{mediaId:"m-b1",url:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 침실과 창밖 바다 전경",category:"객실",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b2",url:"https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 아일랜드 키친과 다이닝 테이블",category:"주방",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-b3",url:"https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80",alt:"Starlight B동 2층 루프탑 테라스에서 본 일몰",category:"테라스",caption:"애월의 노을이 내려앉는 루프탑",width:1200,height:800,sourceType:t.OWNER,unitId:"unit-b"},{mediaId:"m-g1",url:"https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=1200&q=80",alt:"현무암 돌담으로 둘러싸인 독채 입구와 잔디 마당",category:"외관 및 정원",caption:"돌담과 단독 잔디 정원",width:1200,height:800,sourceType:t.OWNER},{mediaId:"m-g2",url:"https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",alt:"야간 조명이 켜진 잔디 정원",category:"야경",caption:"해가 지면 켜지는 정원 조명",width:1200,height:800,sourceType:t.OWNER}],faqs:[{faqId:"faq-1",question:"체크인과 체크아웃 시간은 어떻게 되나요?",answer:"체크인은 16:00부터, 체크아웃은 11:00까지입니다. 비대면 도어락 비밀번호는 입실 당일 11:00에 예약자 휴대폰으로 발송됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:1},{faqId:"faq-2",question:"객실 내 취사가 가능한가요?",answer:"인덕션·전자레인지·조리도구를 이용한 조리가 가능합니다. 다만 실내에서 고기나 생선을 굽는 조리는 불가하며, 야외 바비큐 시설은 운영하지 않습니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:2},{faqId:"faq-3",question:"주차는 몇 대까지 가능한가요?",answer:"객실동별 전용 주차공간에 2대씩, 총 4대까지 무료로 주차하실 수 있습니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:3},{faqId:"faq-4",question:"반려동물 동반 입실이 가능한가요?",answer:"반려동물 동반 입실은 불가합니다. 알레르기 예방과 객실 청결 유지를 위한 방침입니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:4},{faqId:"faq-5",question:"기준 인원을 넘으면 추가 요금이 있나요?",answer:"기준 2인 초과 시 1인당 1박 30,000원의 추가 요금이 있으며 침구가 제공됩니다.",status:r.VERIFIED,sourceType:t.OWNER,sortOrder:5},{faqId:"faq-6",question:"예약 취소 및 환불 규정은 어떻게 되나요?",answer:"이용일 10일 전 취소 시 100% 환불, 7일 전 80%, 5일 전 50%, 3일 전 30% 환불되며, 2일 전부터 당일 취소는 환불이 불가합니다.",status:r.CORRECTED,sourceType:t.OWNER,sortOrder:6}],links:[{channel:s.NAVER_PLACE,url:"https://m.place.naver.com/accommodation/1234567890",title:"네이버 플레이스",confirmed:!0},{channel:s.INSTAGRAM,url:"https://instagram.com/moonlightstay.jeju",title:"공식 인스타그램",confirmed:!0},{channel:s.YANOLJA,url:"https://www.yanolja.com/pension/0000000",title:"야놀자",confirmed:!1}],local:{syncedAt:"2026-08-26T08:00:00+09:00",weather:{temperature:26.4,condition:"맑음",note:"맑고 바람이 약해 해안 산책로를 걷기 좋은 날씨입니다.",observedAt:"2026-08-27T09:00:00+09:00"},restaurants:[{name:"닻",category:"해산물 · 이자카야",distanceText:"450m",durationText:"도보 6분",description:"숙성 딱새우 사시미와 뿔소라 버터구이를 내는 애월의 심야 식당",searchQuery:"애월 닻"},{name:"우니담 애월본점",category:"성게 · 솥밥",distanceText:"1.2km",durationText:"차량 3분",description:"성게미역국과 성게비빔밥을 내는 바다 전망 한식당",searchQuery:"애월 우니담"},{name:"해월정 애월직영점",category:"보말칼국수",distanceText:"2.1km",durationText:"차량 5분",description:"보말 육수로 끓인 칼국수와 죽을 내는 아침·점심 식당",searchQuery:"애월 해월정"}],attractions:[{name:"한담해변 산책로",category:"해안 산책로",distanceText:"2.0km",durationText:"차량 5분 / 도보 25분",description:"바다를 끼고 이어지는 제주 서쪽 해안 산책길",searchQuery:"한담해안산책로"},{name:"곽지해수욕장",category:"해수욕장",distanceText:"3.5km",durationText:"차량 7분",description:"수심이 얕고 천연 용천수 노천탕이 있는 백사장",searchQuery:"곽지해수욕장"},{name:"새별오름",category:"오름",distanceText:"11km",durationText:"차량 18분",description:"가을 억새로 알려진 완만한 능선의 기생화산",searchQuery:"제주 새별오름"}],festivals:[{month:"10월",name:"제주 올레걷기축제",period:"2026.10.15 ~ 2026.10.17",location:"제주 올레길 15~16코스",description:"올레길을 걸으며 참여하는 제주의 가을 축제",searchQuery:"제주 올레걷기축제"},{month:"11월",name:"제주 감귤 박람회",period:"2026.11.20 ~ 2026.11.24",location:"서귀포 농업기술센터 일원",description:"감귤 수확 체험과 농수산물 직거래 행사",searchQuery:"제주 감귤 박람회"}]},routes:[{destination:"제주국제공항",byCar:"약 32분",byTransit:"약 55분 (급행 102번)",distanceText:"19.5km",note:"공항로 · 애월해안로 경유"},{destination:"애월 한담해변",byCar:"약 4분",byTransit:"도보 약 20분",distanceText:"1.9km",note:"해안 산책로 연결"},{destination:"곽지해수욕장",byCar:"약 7분",byTransit:"도보 약 35분",distanceText:"3.4km"},{destination:"협재해수욕장",byCar:"약 16분",byTransit:"버스 약 30분 (간선 202번)",distanceText:"11.8km"}],songs:[],narrative:{heroHeadline:"바람과 돌담이 품은 고요",heroSubline:"제주 자연의 질감이 머무는 독채 스테이",tagline:"하루 두 팀만 머무는, 애월의 프라이빗 독채",summary:"제주시 애월읍에 있는 달빛스테이 제주입니다. 독채 2동을 운영하며 체크인 16:00, 체크아웃 11:00입니다. 반려동물 동반은 불가하고, 주차는 4대까지 무료입니다.",about:["달빛스테이 제주는 제주의 현무암 돌담과 편백나무를 그대로 살려 지은 독채 숙소입니다.","애월 해안도로에서 한 블록 안쪽 마을 골목에 있어, 파도 소리와 밤하늘을 조용히 누릴 수 있습니다.","하루에 두 팀만 받으며, 각 동마다 독립된 마당과 야외 자쿠지, 다도 공간이 따로 있습니다."]},theme:{templateId:"stay-warm-wood",colors:{primary:"#43302b",secondary:"#786055",bg:"#faf8f5",card:"#f2ece4",text:"#29201d",accent:"#c27847"},fontStyle:"Warm Natural",sections:[{id:"hero",name:"히어로",enabled:!0,locked:!0},{id:"intro",name:"소개",enabled:!0,locked:!1},{id:"rooms",name:"객실 안내",enabled:!0,locked:!1},{id:"info",name:"기본 정보",enabled:!0,locked:!0},{id:"rules",name:"이용 규정",enabled:!0,locked:!1},{id:"booking",name:"예약 안내",enabled:!0,locked:!1},{id:"photos",name:"사진 갤러리",enabled:!0,locked:!1},{id:"weather",name:"날씨",enabled:!0,locked:!1},{id:"local",name:"지역 정보",enabled:!0,locked:!1},{id:"map",name:"오시는 길",enabled:!0,locked:!0},{id:"faq",name:"FAQ",enabled:!0,locked:!1}]}};export{y as MOONLIGHT_STAY_PAYLOAD};